aleksandr-m / gitflow-maven-plugin

The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
https://aleksandr-m.github.io/gitflow-maven-plugin/
Apache License 2.0
487 stars 180 forks source link

[Question] Is it possible to release the next Patch Version? #387

Closed Mom0aut closed 1 year ago

Mom0aut commented 1 year ago

I wanna use the goal mvn gitflow::release and i dont wanna set the next release/deployment version manually. Can i somehow set the next possible patch version. For example current Version is 0.0.1 and i performmvn gitflow::release -DReleaseNextPatch it should release the Version 0.0.2.

Is there any command for that in the actual plugin?

Thanks

aleksandr-m commented 1 year ago

Usually, the development version is already incremented, comparing to the last release version. You can use releaseVersion parameter to change it when running the release goal. Also, you can implement custom version policy and use it.

Mom0aut commented 1 year ago

Thank you for your response, can i use the developmentVersion during runtime like mvn gitflow::release -DreleaseVersion=developmentVersion ?