Skip to content

Commit

Permalink
Switch Sonatype publishing to user token instead of user/pw credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
jlink committed Jun 21, 2024
1 parent 48d0961 commit 52d2744
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions buildSrc/src/main/groovy/jqwik.common-configuration.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ publishing {
repositories {
maven {
// hint: credentials are in ~/.gradle/gradle.properties
def ossrhUsername = project.hasProperty('ossrhUsername') ? project.ossrhUsername : ''
def ossrhPassword = project.hasProperty('ossrhPassword') ? project.ossrhPassword : ''
// Since June 2024 Sonatype seems to require a token for publishing
def repoUsername = project.hasProperty('tokenUsername') ? project.tokenUsername : ''
def repoPassword = project.hasProperty('tokenPassword') ? project.tokenPassword : ''

//def repoUsername = project.hasProperty('sonatypeUsername') ? project.sonatypeUsername : ''
//def repoPassword = project.hasProperty('sonatypePassword') ? project.sonatype : ''

credentials {
username = ossrhUsername
password = ossrhPassword
username = repoUsername
password = repoPassword
}

// change URLs to point to your repos, e.g. http://my.org/repo
Expand Down

0 comments on commit 52d2744

Please sign in to comment.