Change the release process from SNAPSHOT to build number

1.4k views Asked by At

Currently we are using axion-release-plugin to control our release process. Now we would like to drop the SNAPSHOT and introduce the build number in our release process. So that we can achieve CI.

Basically currently we are using version 1.0.0-SNAPSHOT and now we need something like 1.0.0-BUILDNUMBER or 1.0.BUILDNUMBER from Jenkins.

Please provide any solution or plugin we can use with gradle.

1

There are 1 answers

0
trainmaster On

I'm actually quite happy with nebula-release-plugin developed by NetFlix. It can generate a unique version number based on branches and tags in your git repo.

By default it counts with using git flow, but you can reconfigure the behaviour. Take a look :)