- Create a new branch for the release
git checkout -b release-vX.Y.Z
(where X.Y.Z is the new version) - Change the version in
gradle.properties
to a non-SNAPSHOT version. - Update the
CHANGELOG.md
for the impending release. git commit -am "Prepare for release X.Y.Z."
(where X.Y.Z is the new version)- Submit a PR with the changes against the
master
branch
After merging the PR, tag the release:
git tag -a vX.Y.Z -m "Version X.Y.Z"
(where X.Y.Z is the new version)- git push --tags
After this is done, create a new branch to prepare for the next development version:
git checkout master && git pull && git checkout -b prepare-X.Y.Z-SNAPSHOT
(where X.Y.Z is the new development version)- Update the
gradle.properties
to the next SNAPSHOT version. git commit -am "Prepare next development version."
- Submit a PR with the changes against the
master
branch and merge it