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

We use ivy:buildnumber (http://ant.apache.org/ivy/history/2.0.0/use/buildnumber.html) 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

Cheers

James

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