Skip to content

Commit 184cc38

Browse files
authored
Update instructions to reflect recent auth changes (#354)
1 parent 44da9c4 commit 184cc38

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

RELEASING.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@ your OSSRH (OSS Repository Hosting) account and signing keys.
3838
checkstyle.ignoreFailures=false
3939
```
4040
41-
Note: If your key-generation is failing, checkout the [help section](#help-timeout-during-key-generation-process) at the bottom of this document.
41+
> [!TIP]
42+
> If your key-generation is failing, checkout the [help section](#help-timeout-during-key-generation-process) at the bottom of this document.
4243
4344
### Using GPG-Agent for artifact signing
4445
46+
> [!NOTE]
47+
> These instructions are for modern linux where `gpg` refers to the 2.0 version.
48+
4549
If you're running in linux and would like to use the GPG agent to remember your PGP key passwords instead of keeping them in a plain-text file on your home directory,
4650
you can configure the following in `<your-home-directory>/.gradle/gradle.properties`:
4751
@@ -50,10 +54,13 @@ you can configure the following in `<your-home-directory>/.gradle/gradle.propert
5054
signing.gnupg.keyName=<secret key id (large hash)>
5155
signing.secretKeyRingFile=<your-home-directory>/.gnupg/pubring.kbx
5256
```
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.
5358
54-
Note: these instructions are for modern linux where `gpg` refers to the 2.0 version. 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.
59+
> [!IMPORTANT]
60+
> 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.
5562
56-
### Ensuring you can push tags to Github upstream
63+
### Ensuring you can push tags to GitHub upstream
5764
5865
Before any push to the upstream repository you need to create a [personal access
5966
token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).
@@ -143,12 +150,12 @@ and they include any custom release qualifiers (like 'alpha') which are set. Mak
143150

144151
## Announcement
145152

146-
Once deployment finishes, go to Github [release
153+
Once deployment finishes, go to GitHub [release
147154
page](https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/releases),
148155
press `Draft a new release` to write release notes about the new release.
149156

150157
You can use `git log upstream/v$MAJOR.$((MINOR-1)).x..upstream/v$MAJOR.$MINOR.x
151-
--graph --first-parent` or the Github [compare
158+
--graph --first-parent` or the GitHub [compare
152159
tool](https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/compare/)
153160
to view a summary of all commits since last release as a reference.
154161

0 commit comments

Comments
 (0)