- Create a branch from
master
in the formatrelease/<version_to_be_released>
Eg.release/1.0.0
- Change the
version
value inbuild.gradle.kts
to the version number to be released. - Update
CHANGELOG.md
entry with changes of the release. - Run
./gradlew clean build
to make sure project builds successfully. git commit -am "Make release for X.Y.Z."
(where X.Y.Z is the new version).git tag -a X.Y.Z -m "Version X.Y.Z"
git push && git push --tags
- Update
version
value inbuild.gradle.kts
to the next SNAPSHOT version. - Update version links at the bottom of the
CHANGELOG.md
file. git commit -am "Prepare next development version."
git push
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="Make release for" | cut -d' ' -f2- | sed -E -e 's/^/-m "/' | sed -E -e 's/$/"/'