Skip to content

Commit e8f127e

Browse files
Update Sonatype endpoints (#2019)
1 parent 3e273d0 commit e8f127e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
buildscript {
22
repositories {
33
mavenCentral()
4-
//Add only for SNAPSHOT versions
5-
//maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
64
}
75
}
86

deploy.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ def isReleaseBuild() {
1515

1616
def getReleaseRepositoryUrl() {
1717
return hasProperty("RELEASE_REPOSITORY_URL") ? RELEASE_REPOSITORY_URL
18-
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
18+
: "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
1919
}
2020

2121
def getSnapshotRepositoryUrl() {
2222
return hasProperty("SNAPSHOT_REPOSITORY_URL") ? SNAPSHOT_REPOSITORY_URL
23-
: "https://oss.sonatype.org/content/repositories/snapshots/"
23+
: "https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/"
2424
}
2525

2626
def getRepositoryUsername() {

0 commit comments

Comments
 (0)