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.mdis up-to-date onmainfor 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.tomlto 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
rcversion by 1