Created
July 24, 2014 21:02
-
-
Save oillio/ab285dfbc482500cc1bd to your computer and use it in GitHub Desktop.
Update versions and release with git flow and maven
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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