Skip to content
This repository was archived by the owner on Jul 1, 2022. It is now read-only.

Commit 98c4aba

Browse files
authored
Update release notes (#822)
1 parent ad3a4b0 commit 98c4aba

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

RELEASE.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ While the Travis build is ready for that, releasing locally requires the followi
3030
* generate keys: `gpg --gen-key`
3131
* see installed keys with `gpg --list-keys` or `gpg --list-secret-keys`
3232
* create an account with Sonatype, get repo permissions (e.g. https://issues.sonatype.org/browse/OSSRH-23572)
33+
* export the secret key ring file with `gpg --export -o $HOME/.gnupg/secring.gpg` or `gpg --export-secret-keys -o $HOME/.gnupg/secring.gpg`
3334
* create `$HOME/.gradle/gradle.properties` file or add parameters directly as it is shown at the last step.
3435
```
35-
signing.keyId={key ID from gpg --list-secret-keys}
36-
signing.password={password you used to encrypt keys via gpg --gen-key}
37-
signing.secretKeyRingFile={e.g. [home path]/.gnupg/secring.gpg}
36+
signing.keyId={8 hex digit key ID from: gpg --list-secret-keys --keyid-format short}
37+
signing.password={password you used to encrypt keys via: gpg --gen-key}
38+
signing.secretKeyRingFile={e.g. $HOME/.gnupg/secring.gpg}
3839
3940
ossrhUsername={your user name at Sonatype}
4041
ossrhPassword={your password at Sonatype}
@@ -43,8 +44,10 @@ While the Travis build is ready for that, releasing locally requires the followi
4344
* `gpg --keyserver http://keyserver.ubuntu.com:11371 --send-keys {pub key ID}`
4445
* you can also use Web UI and upload plain test key that you can obtain via
4546
* `gpg --armor --export {your email used for the keys}`
46-
* Run gradle upload to Nexus. Note that it might be necessary to close and release via Nexus UI.
47-
* `./gradlew upload -Psigning.keyId=<key ID from gpg --list-secret-keys> -Psigning.password=<password you used to encrypt keys via gpg --gen-key> -Psigning.secretKeyRingFile=<home/user>/.gnupg/secring.gpg -PossrhUsername=<name> -PossrhPassword=<pas>`
47+
* Publish the release to Nexus.
48+
* `./gradlew publish`
49+
* Note that if this fails with error `Execution failed for task ':closeRepository'.`, it might be necessary to close and release via Nexus UI:
50+
[Closing Staging Repository Manually](#Closing-Staging-Repository-Manually)
4851

4952
## Closing Staging Repository Manually
5053

@@ -54,3 +57,12 @@ While the Travis build is ready for that, releasing locally requires the followi
5457
* Once Close is successful, the Release button will become available, so hit it
5558
* Keep hitting Refresh while sync to Maven is in progress. Once it's complete, the repository will disappear.
5659

60+
If manually closing the Staging Repository fails, try cleaning up the existing open Staging Repositories
61+
as advised in this gradle-nexus-staging-plugin
62+
[github discussion thread](https://github.com/Codearte/gradle-nexus-staging-plugin/issues/69#issuecomment-380558983).
63+
64+
* https://oss.sonatype.org/, log in, go to Staging Repositories.
65+
You should see a list of jaeger staging deployments with Status "open".
66+
* Select all staging deployments.
67+
* Hit "Drop" button. Monitor the delete status by hitting Refresh until all Staging Repositories are deleted.
68+
* Try running `./gradlew publish` again.

secring.gpg

3.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)