Fix release script.

This commit is contained in:
Greg Turnquist
2019-02-23 12:28:11 -06:00
parent af179bdf54
commit c393bfbf6c

View File

@@ -5,19 +5,15 @@ set -euo pipefail
RELEASE=$1
SNAPSHOT=$2
git branch -f release
git checkout release
# Bump up the version in pom.xml to the desired version and commit the change
./mvnw versions:set -DnewVersion=$RELEASE -DgenerateBackupPoms=false
git add .
git commit --message "Releasing Spring Session MongoDB v$RELEASE"
git commit --message "Releasing Spring Web Services v$RELEASE"
# Tag the release
git tag -s v$RELEASE -m "v$RELEASE"
# Bump up the version in pom.xml to the next snapshot
git checkout master
./mvnw versions:set -DnewVersion=$SNAPSHOT -DgenerateBackupPoms=false
git add .
git commit --message "Continue development on v$SNAPSHOT"