Skip to content

Commit afe3b9a

Browse files
authored
chore: change maven repo api endpoint (#73)
1 parent 6dfbe3d commit afe3b9a

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

build.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,12 @@ publishing {
146146
}
147147
repositories {
148148
maven {
149-
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
150-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
149+
def releasesRepoUrl = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
150+
def snapshotsRepoUrl = "https://central.sonatype.com/repository/maven-snapshots/"
151151
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
152-
if (project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')) {
153-
credentials {
154-
username = "${sonatypeUsername}"
155-
password = "${sonatypePassword}"
156-
}
152+
credentials {
153+
username = findProperty('centralPortalUsername')
154+
password = findProperty('centralPortalPassword')
157155
}
158156
}
159157
}

0 commit comments

Comments
 (0)