Files
spring-session-data-mongodb/ci/create-release.sh
Greg Turnquist 4c67b43fe7 Automated release process
* Scriptify rolling the version numbers.
* Delegate building release versions on the CI server.
* Add ability to promot to bintray.
* Add ability to sync to maven central.
* Add ability to promote to bintray
2018-11-28 12:05:53 -06:00

26 lines
593 B
Bash
Executable File

#!/bin/bash
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"
# 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"