diff --git a/release.sh b/release.sh index 1607a99..694c50d 100755 --- a/release.sh +++ b/release.sh @@ -1,17 +1,17 @@ -#!/usr/bin/env bash +#!/bin/sh -e -set -e +: ${2?"Usage: $0 "} 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 \ No newline at end of file +mvn versions:set -D newVersion=$2-SNAPSHOT +git add $(find . -name pom.xml) +git commit -m "Development $2-SNAPSHOT"