Project

General

Profile

Releasing Java SDK packages » History » Version 6

Peter Amstutz, 12/02/2021 08:28 PM

1 1 Peter Amstutz
h1. Releasing Java SDK packages
2
3
The Java SDK is distributed on the Sonatype artifact repository.  Here are the steps to release a new jar file:
4
5 2 Peter Amstutz
reference: https://central.sonatype.org/publish/release/
6
7 1 Peter Amstutz
# Build and upload package using https://ci.arvados.org/view/All/job/build-java-sdk
8 5 Peter Amstutz
# Go to https://oss.sonatype.org and log in with the appropriate credentials (gopass oss.sonatype.org/curii)
9 1 Peter Amstutz
# Under "Build Promotion" on the left sidebar, click on "Staging Repostories"
10 6 Peter Amstutz
# Find "orgarvados-1005" and click on it
11 1 Peter Amstutz
# In the toolstrip, click on "Close" -- this locks the repository against further changes and runs validation checks
12
# The validation checks take a few minutes.  You can monitor it on the "Activity" tab
13
# Once the validations have passed, you'll be able to hit the "Release" button
14
# This moves the packages to the release repository and drops (deletes) the staging repository
15
# Reportedly there is lag of a few minutes on when a released package becomes visible / searchable
16 3 Peter Amstutz
17
h2. gradle.properties
18
19
<pre>
20 4 Peter Amstutz
ossrhUsername=curii
21
ossrhPassword=...
22
signing.keyId=...
23
signing.password=
24
signing.secretKeyRingFile=...-secret-key.gpg
25
26 3 Peter Amstutz
</pre>