Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (20 sloc) 600 Bytes
SNAPSHOT=$1
VERSION=$2
NEXT=$3
if [ "x" = "x"$2 ] ; then
echo "usage: $0 SNAPHOT_VERSION VERSION NEXT_VERSION"
exit 1
fi
mvn clean install
mvn3 -P maven3 clean install
jruby -S rake clean compile spec
find -name "pom.xml" | xargs sed -i s/${SNAPSHOT}-SNAPSHOT/${VERSION}/
find -name "pom.xml" | xargs git add
git ci -m "release of version ${VERSION}" || exit
git tag v${VERSION}
mvn clean deploy
find -name "pom.xml" | xargs sed -i s/${VERSION}/${NEXT}-SNAPSHOT/
find -name "pom.xml" | xargs git add
git ci -m "next snapshot version ${NEXT}"
mvn install
git push --tags origin master