-
Ensure that
./gradlew clean build
completes with no errors. -
If you don't already have them, create a Sonatype user account and GPG signing key
-
Create a
gradle.properties
file containing your signing key-ring location and ID and yoursonatype username and password. For example:> cat /home/myusername/.gradle/gradle.properties signing.keyId=BAADF00D signing.secretKeyRingFile=/home/myusername/.gnupg/secring.gpg sonatypeUsername=myusername sonatypePassword=p455w0rd
-
Run
./gradlew uploadArchives
-
When prompted, enter the passphrase for your GPG key
This should upload your archives to the Sonatype repository.
- Add detailed instructions for deploying SNAPSHOT vs. release builds.
If you run into any issues following these instructions, please update this document with clarifications or workarounds.