Skip to content

Commit caafffa

Browse files
authored
Use new url to publish snapshot to sonatype (#117)
1 parent 11902f9 commit caafffa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ allprojects {
6161
nexusPublishing {
6262
repositories {
6363
sonatype {
64+
// Ref: https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
65+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
66+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
67+
6468
username = System.getenv('SONATYPE_NEXUS_USERNAME') ?: ''
6569
password = System.getenv('SONATYPE_NEXUS_PASSWORD') ?: ''
6670
}

0 commit comments

Comments
 (0)