Skip to content
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
a=( ${version//./ } )
files=(*/pom.xml pom.xml
./ "$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
./ "$next"
git commit -m "Prepare for development $next" ${files[@]}
git push origin master
git push --tags origin master