Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Commit

Permalink
Silent release script
Browse files Browse the repository at this point in the history
  • Loading branch information
whiskeysierra committed Aug 30, 2016
1 parent 3264151 commit d5bf55e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#!/usr/bin/env bash
#!/bin/sh -e

set -e
: ${2?"Usage: $0 <release-version> <next-version>"}

mvn scm:check-local-modification

# release
mvn versions:set
git add pom.xml
git commit
mvn versions:set -D newVersion=$1
git add $(find . -name pom.xml)
git commit -m "Release $1"
mvn clean deploy -P release
mvn scm:tag

# next development version
mvn versions:set
git add pom.xml
git commit
mvn versions:set -D newVersion=$2-SNAPSHOT
git add $(find . -name pom.xml)
git commit -m "Development $2-SNAPSHOT"

0 comments on commit d5bf55e

Please sign in to comment.