Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 28 lines (20 sloc) 610 Bytes
#!/usr/bin/env bash
if [ $# -lt 1 ]; then
echo "$0 <release>"
exit 1
fi
version=$1
a=( ${version//./ } )
((a[2]++))
files=(*/pom.xml pom.xml README.md CHANGELOG.md)
next="${a[0]}.${a[1]}.${a[2]}-SNAPSHOT"
./version.sh "$version"
mvn -T 4 clean javadoc:jar deploy || (echo "Something went wrong with compile, aborting" ; exit 1)
git add -A docs
git commit -m "Javadocs $version" docs
git commit -m "Release $version" ${files[@]}
git tag -a -m "$version" $version
./version.sh "$next"
git commit -m "Prepare for development $next" ${files[@]}
git push origin master
git push --tags origin master