- Checkout
origin/main
. - Update the
CHANGELOG.md
file with the changes of this release. - 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
- Push the artifacts to Maven Central and the Gradle Plugin Portal.
./gradlew clean uploadArchives --no-daemon --no-parallel --no-build-cache && cd gradle-plugin && ./gradlew clean uploadArchives publishPlugins --no-daemon --no-parallel --no-build-cache && cd ..
- Close and release the staging repository at Sonatype.
- Update the version in
gradle.properties
and add the-SNAPSHOT
suffix. - Commit the change:
git commit -am "Prepare next development version."
- Push git changes:
git push && git push --tags
- 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".
./gradlew clean publishToMavenLocal --no-build-cache && cd gradle-plugin && ./gradlew clean publishToMavenLocal --no-build-cache && cd ..
Snapshot releases are similar to production releases. Only make sure that the version contains the
-SNAPSHOT
suffix. Closing and releasing the staging repository on Sonatype is not necessary for
snapshot releases. You can verify the release here.