gradle-nexus / publish-plugin

Gradle plugin for publishing to Nexus repositories
Apache License 2.0
384 stars 30 forks source link

Checking whether version is already used #284

Open mohamnag opened 6 months ago

mohamnag commented 6 months ago

Thanks a lot for this straight forward plugin which replaces a lot of hassle we had to publish to maven central. I have successfully integrated this plugin into one of my open source projects and I'm able to do a one shot publish and release.

However as I'm increasing the version manually in code, I would like to add a check to end of my CI pipeline to prevent any MR with a version that is already published (or maybe even staged to be published) to be merged. I tried to find something in docs but seems there is no such task in this plugin that checks calculated version against nexus or maven central, would that be possible to be considered as a candidate feature?