From 8543a4e99e7b38670c8a79d867bac911004212da Mon Sep 17 00:00:00 2001 From: oliemansm Date: Fri, 5 Aug 2022 16:29:50 +0200 Subject: [PATCH] fix sonatype publishing configuration --- build.gradle | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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') ?: '' }