diff --git a/build.gradle.kts b/build.gradle.kts index d865aaa3..3ad11276 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -172,10 +172,11 @@ signing { nexusPublishing { repositories { sonatype { - nexusUrl.set(uri("https://oss.sonatype.org/service/rest/")) - snapshotRepositoryUrl.set(uri("https://oss.sonatype.org/content/repositories/snapshots/")) - username.set(extra["ossrhUsername"] as String) - password.set(extra["ossrhPassword"] as String) + nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) + snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) + username = extra["ossrhUsername"] as String + password = extra["ossrhPassword"] as String + stagingProfileId = extra["sonatypeStagingProfileId"] as String } } -} +} \ No newline at end of file