- Ensure you have your
.gradle/gradle.properties
filled with the requisite credentials:
nexusUsername=<sonatype username>
nexusPassword=<sonatype password>
signing.keyId=<signing key id>
signing.password=<signing key password>
signing.secretKeyRingFile=<signing pgp key path>
- Update
VERSION_NAME
ingradle.properties
to reflect the release version. (Remove "-SNAPSHOT" when releasing.) - Run
gradle publish
to upload to Sonatype. - Run
gradle closeAndReleaseRepository
to release to Maven (do not combine with previous command as ordering isn't guaranteed.) - Update
VERSION_NAME
ingradle.properties
to prepare for next release version.