Skip to content

Commit 92cdcfe

Browse files
committed
Fix sonatype publishing
1 parent af1e5e7 commit 92cdcfe

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

build.gradle

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ repositories {
1717
group = "com.authzed.api"
1818
version = findProperty("release") ?: "0.0.0-SNAPSHOT"
1919

20-
nexusPublishing { repositories { sonatype {
21-
// If registered in Sonatype after 24 Feb 2021, you must explicitly configure these:
22-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
23-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
20+
nexusPublishing {
21+
repositories {
22+
sonatype {
23+
// Docs here:
24+
// https://github.com/gradle-nexus/publish-plugin?tab=readme-ov-file#publishing-to-maven-central-via-sonatype-central
25+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
26+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
2427
}}}
2528

2629
publishing {

0 commit comments

Comments
 (0)