Releasing Java SDK packages » History » Revision 13
« Previous |
Revision 13/14
(diff)
| Next »
Brett Smith, 11/04/2025 02:11 PM
update for Sonatype Central Repository migration
Releasing Java SDK packages¶
The Java SDK is distributed on the Sonatype artifact 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.
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