The release process consists of first publishing a release candidate and then using that release candidate to first publish a new snapshot and then the final release. This is a final test that publishing generally works with the new release.
- Make sure
CHANGELOG.md
is up-to-date onmain
for the impeding release. git tag -a X.Y.X-rc1 -m "Version X.Y.Z Release Candidate 1"
(where X.Y.Z is the new version)git push --tags
- Update
libs.versions.toml
to useX.Y.X-rc1
git commit -am "Update to X.Y.X-rc1"
dependency-watch await com.vanniktech:gradle-maven-publish-plugin:X.Y.X-rc1 && git push
- Wait for snapshot to be published successfully
git tag -a X.Y.X -m "Version X.Y.Z"
git push --tags
If the snapshot publishing fails in step 7 or the final release publishing after step 9 fails:
- Fix the issue that caused the failure
- Downgrade back to stable publish plugin
- Start the whole process again and bump the
rc
version by 1