- 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.propertiesto a non-SNAPSHOT version. - Update the
CHANGELOG.mdfor 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
masterbranch
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.propertiesto the next SNAPSHOT version. git commit -am "Prepare next development version."- Submit a PR with the changes against the
masterbranch and merge it