- Change the
VERSION_NAME
value ingradle.properties
to the version number to be released. - Update the
README.md
with the new version and updateCHANGELOG.md
./gradlew clean build
git commit -am "Prepare for release X.Y.Z."
(where X.Y.Z is the new version)git tag -a X.Y.Z -m "Version X.Y.Z"
-m "Changelog message 1"
-m "Changelog message 2"
-m "Changelog message 3"
git push && git push --tags
Note: To get the changelog messages from the commit history, issue
git log "$(git tag | tail -n2 | head -n1)..$(git tag | tail -n1)" --oneline --invert-grep --grep="Merge pull request" --grep="Prepare for release" | cut -d' ' -f2- | sed -E -e 's/^/-m "/' | sed -E -e 's/$/"/'