Skip to content

Instantly share code, notes, and snippets.

@TFaga
Last active February 4, 2018 10:33
Show Gist options
  • Save TFaga/7b5854543e903e50aed294b66b777418 to your computer and use it in GitHub Desktop.
Save TFaga/7b5854543e903e50aed294b66b777418 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
mvn versions:set -DnewVersion=$1
mvn versions:commit
git add .
git commit -S -m "Release v$1"
git tag -s v$1 -m "Release v$1"
mvn versions:set -DnewVersion=$2
mvn versions:commit
git add .
git commit -S -m "Updated to next SNAPSHOT version"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment