- Create a new branch called
release/X.Y.Z
git checkout -b release/X.Y.Z
- Change the version in
gradle.properties
to your desired release version - Update the
CHANGELOG.md
for the impending release. git commit -am "Create release X.Y.Z."
(where X.Y.Z is the new version)git tag -a X.Y.Z -m "Version X.Y.Z"
(where X.Y.Z is the new version)- Upgrade to next version by changing version in
gradle.properties
git commit -am "Prepare snapshot X.Y.Z-SNAPSHOT"
git push && git push --tags
- Create a PR to merge the new branch into
master
- The CI pipeline will recognize the tag and upload, close and promote the artifacts automatically
- Current VERSION_NAME in
gradle.properties
= 4.9.1 git checkout -b release/4.9.2
- Change VERSION_NAME = 4.9.2 (next higher version)
- Update CHANGELOG.md
git commit -am "Create release 4.9.2"
git tag -a 4.9.2 -m "Version 4.9.2"
git push && git push --tags
- Change VERSION_NAME = 4.9.3 (next higher version)
git commit -am "Prepare snapshot 4.9.3-SNAPSHOT"
git push && git push --tags
- Merging PR master will create a snapshot release 4.9.3-SNAPSHOT and tag push will create stable release 4.9.2