Skip to content

Commit 06f43e9

Browse files
potential fix
1 parent 6a6bcc0 commit 06f43e9

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

build.gradle.kts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,14 @@ subprojects {
9797

9898
maven {
9999
name = "MavenCentral"
100-
val releasesRepoUrl = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
101-
val snapshotsRepoUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
102-
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
100+
val base = "https://ossrh-staging-api.central.sonatype.com"
101+
val releases = uri("$base/service/local/staging/deploy/maven2/")
102+
val snapshots = uri("https://central.sonatype.com/repository/maven-snapshots/")
103+
url = if (version.toString().endsWith("SNAPSHOT")) snapshots else releases
103104
credentials {
104105
username = project.findProperty("sonatypeUsername") as String?
105-
?: project.findProperty("sonatype.user") as String?
106106
?: System.getenv("SONATYPE_USERNAME")
107107
password = project.findProperty("sonatypePassword") as String?
108-
?: project.findProperty("sonatype.password") as String?
109108
?: System.getenv("SONATYPE_PASSWORD")
110109
}
111110
}

0 commit comments

Comments
 (0)