Skip to content

Commit

Permalink
Updated to Maven Central publish to use user token instead of usernam…
Browse files Browse the repository at this point in the history
…e and password.
  • Loading branch information
jverbus committed Sep 3, 2024
1 parent ae6efe5 commit b0e513d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gradle/release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ tasks.named("githubRelease") {
apply plugin: "io.github.gradle-nexus.publish-plugin" // https://github.com/gradle-nexus/publish-plugin/
nexusPublishing {
repositories {
if (System.getenv("SONATYPE_PWD")) {
if (System.getenv("SONATYPE_TOKEN_PWD")) {
sonatype {
username = System.getenv("SONATYPE_USER")
password = System.getenv("SONATYPE_PWD")
username = System.getenv("SONATYPE_TOKEN_USER")
password = System.getenv("SONATYPE_TOKEN_PWD")
}
}
}
Expand Down

0 comments on commit b0e513d

Please sign in to comment.