gradle-release-plugin
gradle-release-plugin copied to clipboard
Version names instead of full number
Currently, the only way to override automatic version number guessing is to issue the following :
gradle release -PreleaseVersion=2.0.0-SNAPSHOT
It would be nice though, to pass just an alias of the version to bump (minor
, major
), for example:
gradle release -Pmajor
Would cause the 1.2.1
version to be bumped to 2.0.0
. And the following:
gradle release -Pminor
Would cause the 1.2.1
to be bumped to 1.3.0
.
This would be only applicable of course to version format of:
major.minor.build
That's a neat idea. However at the moment, I'm not doing any work on this plugin, and am unlikely to in the near future.
You'd have to figure how to handle 1.3.0b1 and other complicated versions.