-
Make sure to increase version number in build.gradle.kts
-
Document updates in NEWS.md
-
Do the release on GitHub
-
Make sure the following Gradle properties are set
signing.keyId=
signing.password=
signing.secretKeyRingFile=/secring.gpg
- Publish
gradle publish
- Close and Release on sonatype
- Go to: Sonatype
- Click on the staging repository
- Click on Close
- After checks, you can release
- Click on Release
- Generate the key
gpg --gen-key
gpg --list-keys --keyid-format short
- Then register the key on a keyserver
gpg --keyserver keyserver.ubuntu.com --send-keys <keyId>
- Then export it and move it to project base dir (.gitignore will ignore it)
gpg --export-secret-keys -o secring.gpg