mojohaus / versions

Versions Maven Plugin
https://www.mojohaus.org/versions/versions-maven-plugin/
Apache License 2.0
337 stars 267 forks source link

Command to automate updating version to next minor or major snapshot version #1021

Open cordahi opened 11 months ago

cordahi commented 11 months ago

I'm currently going through a large number of projects and updating their version to reflect that their next release should reflect a minor or major functionality change.

  1. Run mvn versions:set
  2. Read the prompt, e.g. Enter the new version to set 1.2.3-SNAPSHOT:
  3. Type 1.3.0-SNAPSHOT

Could the sequence be fully automated with a comand like mvn -DnextMinor versions:set or mvn -DnextMinorSnapshot versions:set?