I am using Gradle 2.4 to deploy artifacts developped in Grovvy and Java. I would like to check the actual existence of an artifact before its publication. One application is to avoid overwriting an artifact pulished in production. Another application would be to discover the next minor release to use for publishing a release for integration tests.
I am publishing into IVY repositories and my components are characterized by group, name, version. I would like to know how to use the Gradle API to check whether an artifact has already been published with these inputs.
Thanks, Loic.