File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments