Skip to content

Commit eede314

Browse files
fix: migrate from decommissioned OSSRH to Central Publisher Portal
1 parent 7525ba7 commit eede314

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@ publishing {
6666
}
6767
repositories {
6868
maven {
69-
name = 'OSSRH'
70-
def releasesUrl = uri('https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/')
71-
def snapshotsUrl = uri('https://s01.oss.sonatype.org/content/repositories/snapshots/')
72-
url = version.toString().endsWith('SNAPSHOT') ? snapshotsUrl : releasesUrl
69+
name = 'CentralPortal'
70+
url = uri('https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/')
7371
credentials {
7472
username = System.getenv('OSSRH_USERNAME') ?: ''
7573
password = System.getenv('OSSRH_PASSWORD') ?: ''

0 commit comments

Comments
 (0)