diff --git a/docs/central.md b/docs/central.md index 70ed9fc2..331f5592 100755 --- a/docs/central.md +++ b/docs/central.md @@ -212,10 +212,9 @@ This configuration also determines the coordinates (`group:artifactId:version`) ## Secrets -For the publishing to work the credentials for Sonatype OSS as well as for the -GPG key that is used for signing need to provided. To keep them out of version -control it is recommended to either put this into the `gradle.properties` file -user home or to use environment variables for publishing from CI servers. +When publishing, you need to provide your Sonatype OSS credentials and signing GPG key. +To keep them out of version control, it is recommended to either put them in your user's +home `gradle.properties` file or to use environment variables (when publishing from CI servers). === "~/.gradle/gradle.properties" @@ -242,6 +241,9 @@ user home or to use environment variables for publishing from CI servers. ORG_GRADLE_PROJECT_signingInMemoryKeyPassword=some_password ``` +Note that the username/password here is *not* the same one you use to login; Sonatype publishing +requires a username/password that was generated via user tokens. The user token needs to be obtained on [Sonatype OSS](https://central.sonatype.org/publish/generate-token/) or the [Central Portal](https://central.sonatype.org/publish/generate-portal-token/) depending on where you publish. + ### In memory GPG key To obtain the in memory signing key run the following command.