Can we use ivy:buildnumber (or an equivalent) from Gradle?

(James Frost) #1

We use ivy:buildnumber ( to calculate the latest build number for artifacts published to our dev repository (in our old ant and gant scripts) Typically our CI will bump the minor version number everytime we get a successful build and publish it to a local ivy repository.

Is there an equivalent in Gradle itself or a way of accessing that ivy functionality directly in a nice way through Gradle?

I’ve seen a couple of posts about incrementing fixed build numbers but not anything about doing it automatically based on an ivy resolve



(Peter Niederwieser) #2

There is no special support for this in Gradle, but you can use the Ant task.