Releasing Java SDK packages¶
The Java SDK is distributed on the Sonatype Central Repository. Here are the steps to release a new jar file:
- Build and upload package using https://ci.arvados.org/view/All/job/build-java-sdk
- Go to Sonatype Publishing Settings and log in with the appropriate credentials (gopass oss.sonatype.org/curii)
- Make sure you're on the "Deployments" tab.
- Find the jar that was just uploaded by Jenkins. Click the "Publish" button and wait for the process to finish.
See documentation about the publishing API we use.
Getting the authentication token for Sonatype¶
Log into Sonatype and under the account menu select "User Tokens" to review and manage tokens. Our current Jenkins token is stored in gopass as curii-systems/websites/oss.sonatype.org/jenkins.
gradle.properties¶
To upload to Sonatype, you need the token (see above) and a secret key. You must upload a GPG-signed package. All these parameters are set in gradle.properties which we keep as a Jenkins secret. Note that the property values after the equals sign should not be quoted. I'm not certain if spaces are allowed around the equals sign, but currently it works with no extra spaces.
ossrhUsername=... ossrhPassword=... signing.keyId=... signing.password= signing.secretKeyRingFile=...-secret-key.gpg
Updated by Brett Smith 5 months ago · 14 revisions