Skip to content

Commit 3bc8f8b

Browse files
committed
Update URLs
1 parent a6181b4 commit 3bc8f8b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ nexusPublishing {
9898
allowInsecureProtocol = true
9999
}
100100
} else {
101+
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
101102
sonatype {
103+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
104+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
102105
username = System.getenv("SONATYPE_USERNAME")
103106
password = System.getenv("SONATYPE_PASSWORD")
104107
}

gradle/repositories.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repositories {
1515
mavenContent {
1616
snapshotsOnly()
1717
}
18-
url 'https://oss.sonatype.org/content/repositories/snapshots/'
18+
url 'https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/'
1919
}
2020
ivy {
2121
artifactPattern 'https://sqreen-ci-java.s3.amazonaws.com/jars/[organisation]/[artifact]-[revision](-[classifier]).[ext]'

0 commit comments

Comments
 (0)