- Change the version in top level
gradle.propertiesto a non-SNAPSHOT verson. - Update the
CHANGELOG.mdfor the impending release. - Update the
README.mdwith the new version. git commit -am "Prepare for release X.Y.Z."(where X.Y.Z is the new version)git tag -a X.Y.X -m "Version X.Y.Z"(where X.Y.Z is the new version)- Run
git tagto verify it.
- Run
git push && git push --tags- This should be pushed to your fork.
- Create a PR with this commit and merge it.
- Update the top level
build.gradleto the next SNAPSHOT version. git commit -am "Prepare next development version."- Create a PR with this commit and merge it.
- Login to Sonatype to promote the artifacts https://central.sonatype.org/pages/releasing-the-deployment.html
- This part is automated. If it fails in CI, follow the steps below.
- Click on Staging Repositories under Build Promotion
- Select all the Repositories that contain the content you want to release
- Click on Close and refresh until the Release button is active
- Click Release and submit
- Update the sample module's
build.gradleto point to the newly released version. (It may take ~2 hours for artifact to be available after release)