Skip to content

Instantly share code, notes, and snippets.

@oillio
Created July 24, 2014 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oillio/ab285dfbc482500cc1bd to your computer and use it in GitHub Desktop.
Save oillio/ab285dfbc482500cc1bd to your computer and use it in GitHub Desktop.
Update versions and release with git flow and maven
git-flow release start $NEWVER
mvn versions:set -DnewVersion=$NEWVER versions:update-child-modules -DgenerateBackupPoms=false -Prpm -Pintegration
git commit -m "Update to release version."
export GIT_MERGE_AUTOEDIT=no
git-flow release finish -m '$NEWVER' $NEWVER
mvn versions:set -DnewVersion=$NEWVER-SNAPSHOT versions:update-child-modules -DgenerateBackupPoms=false -Prpm -Pintegration
mvn release:update-versions --batch-mode -DautoVersionSubmodules=true -Prpm -Pintegration
git commit -a -m "Prepare for new version."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment