diff --git a/build.gradle b/build.gradle index 42bae3d8..995f50c7 100644 --- a/build.gradle +++ b/build.gradle @@ -193,9 +193,7 @@ subprojects { nexusPublishing { repositories { - myNexus { - nexusUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2") - snapshotRepositoryUrl = uri("https://oss.sonatype.org/content/repositories/snapshots/") + sonatype { username = System.env.OSS_USER_TOKEN_KEY ?: project.findProperty('OSS_USER_TOKEN_KEY') ?: '' password = System.env.OSS_USER_TOKEN_PASS ?: project.findProperty('OSS_USER_TOKEN_PASS') ?: '' }