You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> If your key-generation is failing, checkout the [help section](#help-timeout-during-key-generation-process) at the bottom of this document.
54
+
> If your key-generation is failing, checkout the
55
+
> [help section](#help-timeout-during-key-generation-process) at the bottom of
56
+
> this document.
43
57
44
58
### Using GPG-Agent for artifact signing
45
59
46
60
> [!NOTE]
47
61
> These instructions are for modern linux where `gpg` refers to the 2.0 version.
48
62
49
-
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,
50
-
you can configure the following in `<your-home-directory>/.gradle/gradle.properties`:
63
+
If you're running in linux and would like to use the GPG agent to remember your
64
+
PGP key passwords instead of keeping them in a plain-text file on your home
signing.gnupg.keyName=<secret key id (large hash)>
59
75
```
60
-
Note: You can retrieve the list of previously created GPG keys on your machine by using `gpg --list-secret-keys`.
76
+
77
+
Note: You can retrieve the list of previously created GPG keys on your machine
78
+
by using `gpg --list-secret-keys`. Additionally, you might still be asked for
79
+
the GPG key's passphrase while signing the artifact, you can store the key in a
80
+
password manager (or in the built-in Keyring) to avoid entering the password
81
+
manually.\
82
+
For more details, checkout the
83
+
[help section](#help-timeout-while-singing-during-release-process) on the bottom
84
+
of this guide.
61
85
62
86
> [!IMPORTANT]
63
-
> 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.
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.
87
+
> The user tokens for publishing to the Central Portal are different from those
88
+
> used for OSSRH. If you haven't already, you must generate a new Portal Token
89
+
> to publish to the Central Portal.
90
+
> Follow the steps in this
91
+
> [link](https://central.sonatype.org/publish/generate-portal-token/) to
92
+
> generate a user token - this will provide you with a Portal token containing a
93
+
> `username` and `password`. Replace `<generated-token-user>` and
94
+
> `<generated-token-key>` with the generated `username` and `password` in your
95
+
> `gradle.properties` file to successfully publish artifacts.
If you've followed the above steps, you can release snapshots for consumption using the following:
105
+
If you've followed the above steps, you can release snapshots for consumption
106
+
using the following:
75
107
76
108
```bash
77
109
$ ./gradlew snapshot
78
110
```
79
111
112
+
SNAPSHOT releases are intended for developers to make pre-release versions of
113
+
their projects available for testing. Published snapshots should be visible
114
+
using the
115
+
[directory listing for com.google.cloud.opentelemetry](https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/com/google/cloud/opentelemetry/)
0 commit comments