diff --git a/build.gradle.kts b/build.gradle.kts index b356c31cb864..30fdbe7c4b87 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -22,7 +22,10 @@ nexusPublishing { packageGroup.set("io.opentelemetry") 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/")) username.set(System.getenv("SONATYPE_USER")) password.set(System.getenv("SONATYPE_KEY")) } diff --git a/gradle-plugins/build.gradle.kts b/gradle-plugins/build.gradle.kts index d25fd396a6c6..22bd6c07c4c5 100644 --- a/gradle-plugins/build.gradle.kts +++ b/gradle-plugins/build.gradle.kts @@ -97,7 +97,10 @@ nexusPublishing { packageGroup.set("io.opentelemetry") 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/")) username.set(System.getenv("SONATYPE_USER")) password.set(System.getenv("SONATYPE_KEY")) }