- Ensure the correct JDK is installed.
- Verify GPG is configured and the keys are registered, see https://docs.gradle.org/current/userguide/signing_plugin.html.
- Configure
~/.gradle/gradle.properties
with the GPG key information. - Open https://oss.sonatype.org/#profile;User%20Token and generate a new token.
- Run
SONATYPE_LOGIN=$LOGIN_KEY SONATYPE_PASSWORD=$PASSWORD_KEY ./gradlew clean release
- Update the version in the README.md file.