Release:
-
Ensure the repository is up to date and checkout the
develop
branch. -
Update version and remove
-SNAPSHOT
suffix -
Update the
CHANGELOG.md
:- Replace
Unreleased
section with the release version - Add a link to the diff between the previous and the new version to the bottom of the changelog
- Add a new empty
Unreleased
section on the top of the file
- Replace
-
Commit and push the changes.
git commit -am "version: [version here]" git push
-
Merge the
develop
branch intomain
using fast-forward. -
Create a release tag on the
main
branch:# Push the release tag git tag v[version] git push origin v[version]
Release tag push triggers a release workflow on the CI which uploads release artifacts to Maven Central and creates a GitHub release.
After release:
- Rename milestone "Next" to the released version and close it.
- Create a new milestone with the name "Next."
- In the
develop
branch update version to the next potential version with suffix-SNAPSHOT
. - Commit and push.
git commit -am "version: [version here]-SNAPSHOT" git push
- Update a version in
gradle.properties
- Update a version used in samples in
build.gradle.kts
- It the version is not a snapshot, update the version in
README.md