- Checkout
origin/main
. - Update the
CHANGELOG.md
file with the changes of this release (the format is based on Keep a Changelog.- Copy the template for the next unreleased version at the top.
- Delete unused section in the new release.
- Update the links at the bottom of the CHANGELOG.md file and don't forget to change the link for the unreleased version.
- Update the version in
gradle.properties
and remove the-SNAPSHOT
suffix. - Commit the changes and create a tag:
git commit -am "Releasing v0.1.0." git tag v1.0.0
- Update the version in
gradle.properties
and add the-SNAPSHOT
suffix. - Commit the change:
git commit -am "Prepare next development version."
- Push the two commits. This will start a Github action that publishes the release to Maven Central and creates a new release on Github.
git push && git push --tags
- Close and release the staging repository at Sonatype.
Snapshot releases are automatically created whenever a commit to the main
branch is pushed.
Depending on the version in the gradle.properties
file it will be either a production or snapshot release.
./gradlew clean publish --no-daemon --no-parallel --no-build-cache && cd gradle-plugin && ./gradlew clean publish --no-daemon --no-parallel --no-build-cache && cd ..
./gradlew publishToMavenLocal && cd gradle-plugin && ./gradlew publishToMavenLocal && cd ..