I'm using the gradle-release-plugin in Bamboo, with the option useAutomaticVersion=true, to add a git tag and then auto increment version number. The default behavior of the gradle-release-plugin is to increment the patch version (2.0.3 -> 2.0.4). I am trying to implement the following use-case:
- If the current branch is master then increment the minor version (2.0.3 -> 2.1.0)
- If the current branch is any other branch but master, then increment the patch version (2.0.3 -> 2.0.4)
I was wondering if gradle-release-plugin can provide such a functionality?