File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ repositories {
39
39
mavenContent {
40
40
snapshotsOnly()
41
41
}
42
- url ' https://oss.sonatype.org/content/repositories/snapshots/'
42
+ // see https://central.sonatype.org/publish/publish-portal-snapshots/#consuming-via-gradle
43
+ url ' https://central.sonatype.com/repository/maven-snapshots/'
43
44
}
44
45
}
45
46
@@ -75,7 +76,14 @@ nexusPublishing {
75
76
password = " admin123"
76
77
}
77
78
} else {
79
+ // see https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-central
80
+ // For official documentation:
81
+ // staging repo publishing https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
82
+ // snapshot publishing https://central.sonatype.org/publish/publish-portal-snapshots/#publishing-via-other-methods
78
83
sonatype {
84
+ nexusUrl. set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
85
+ snapshotRepositoryUrl. set(uri(" https://central.sonatype.com/repository/maven-snapshots/" ))
86
+
79
87
username = System . getenv(" SONATYPE_USERNAME" )
80
88
password = System . getenv(" SONATYPE_PASSWORD" )
81
89
}
You can’t perform that action at this time.
0 commit comments