Skip to content

Commit d3be6c6

Browse files
committed
Fix sonatype publishing
1 parent af1e5e7 commit d3be6c6

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

build.gradle

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ 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+
}
24+
repositories {
25+
sonatype {
26+
// Docs here:
27+
// https://github.com/gradle-nexus/publish-plugin?tab=readme-ov-file#publishing-to-maven-central-via-sonatype-central
28+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
29+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
2430
}}}
2531

2632
publishing {

0 commit comments

Comments
 (0)