Skip to content

Commit a9cc7ec

Browse files
committed
Switch to new sonatype setup for publishing
1 parent e1f1ba1 commit a9cc7ec

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

build.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,9 @@ publishing {
195195
repositories {
196196
maven {
197197
name = 'sonatype'
198-
credentials {
199-
username System.getenv('SONATYPE_USER')
200-
password System.getenv('SONATYPE_PASSWORD')
201-
}
202-
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
203-
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
198+
credentials(PasswordCredentials)
199+
def releasesRepoUrl = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
200+
def snapshotsRepoUrl = "https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/"
204201
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
205202
}
206203
}

0 commit comments

Comments
 (0)