diff --git a/build.gradle.kts b/build.gradle.kts index 9dad6b4e..d0004a32 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -46,7 +46,13 @@ nexusPublishing { // default 10s delayBetween.set(java.time.Duration.ofSeconds(10)) } - repositories { sonatype() } + repositories { + // see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration + sonatype { + nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) + snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) + } + } } val buildToolIntegrationGradle by