- Checkout
origin/main
. - Update the
CHANGELOG.md
file with the changes of this release. - Update the version in the main
gradle.properties
. - Commit the changes and create a tag:
git commit -am "Releasing version 1.0.0." git tag 1.0.0
- Create the release on GitHub:
- Go to the Releases page for the GitHub project.
- Click "Draft a new release".
- Enter the tag name you just pushed.
- Title the release with the same name as the tag.
- Copy & paste the changelog entry for this release into the description.
- If this is a pre-release version, check the pre-release box.
- Hit "Publish release".
- Wait for the GitHub Action job to complete; it will attach the artifacts to the release.
- Close and release the staging repository at Sonatype.
- Update the version in
gradle.properties
- Commit the change:
git commit -am "Prepare next development version."
- Push git changes:
git push && git push --tags
./gradlew clean publishToMavenLocal --no-build-cache
Builds by default are snapshot releases and the version automatically contains the -SNAPSHOT
suffix.
You can verify the release here.