Skip to content

Commit 71c2c47

Browse files
authored
Fix the error in releasing instructions (#402)
* Fix the error in releasing instructions * Address the feedback
1 parent 8a2496f commit 71c2c47

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

RELEASING.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,18 @@ If you're running in linux and would like to use the GPG agent to remember your
5050
you can configure the following in `<your-home-directory>/.gradle/gradle.properties`:
5151
5252
```text
53+
ossrhUsername=<generated-token-user>
54+
ossrhPassword=<generated-token-key>
55+
56+
signingUseGpgCmd=true
5357
signing.gnupg.executable=gpg
5458
signing.gnupg.keyName=<secret key id (large hash)>
55-
signing.secretKeyRingFile=<your-home-directory>/.gnupg/pubring.kbx
5659
```
57-
Note: This may not work so if after adding this, the `./gradlew candidate` task fails citing 401 errors, try adding back the `ossrhUsername` & `ossrhPassword` fields back.
60+
Note: You can retrieve the list of previously created GPG keys on your machine by using `gpg --list-secret-keys`.
5861
5962
> [!IMPORTANT]
6063
> Starting June 2024, due to a change to the OSSRH authentication backend, the maven publish plugin now requires [a user token](https://central.sonatype.org/publish/generate-token/) instead of a typical username and password used in the Nexus UI.
61-
> Follow the steps in the [link](https://central.sonatype.org/publish/generate-token/) to generate a user token, if not done already - this will provide you with a `tokenuser` and `tokenkey`. Replace the `ossrhUsername` and `ossrhPassword` with this `tokenuser` and `tokenkey` in your `gradle.properties` file to successfully publish artifacts.
64+
> Follow the steps in the [link](https://central.sonatype.org/publish/generate-token/) to generate a user token, if not done already - this will provide you with a `tokenuser` and `tokenkey`. Replace `<generated-token-user>` and `<generated-token-key>` with the generated `tokenuser` and `tokenkey` in your `gradle.properties` file to successfully publish artifacts.
6265
6366
### Ensuring you can push tags to GitHub upstream
6467

0 commit comments

Comments
 (0)