I'm currently learning Maven and I've been doing some testing with gitflow-maven-plugin, I have set up and get it work, now it can change the last digit of the versioning (so if the release version for master branch is 1.0.0, develop version is 1.0.1-SNAPSHOT), I tried to control the change of the digit by using :
mvn -B gitflow:release -DversionDigitIncrement=1
I tried to set DversionDigitIncrement to 0, 1, 2 but the only number changed is the last digit (which is the 'PATCH'), how can I test if the other two numbers change properly? Which commands I should ues or do I need to change configuration in POM file?
Been messing around for a whole day now. Many thanks. (I wanted it to follow semantic versioning naming rule)
try to use it after a release-start :
OR if you want to change develop version at release-start :
In your case, 0 to major and 1 to minor
https://github.com/aleksandr-m/gitflow-maven-plugin#additional-goal-parameters