From 73a549d4df2a139f2706a8909f98fd73b761740a Mon Sep 17 00:00:00 2001 From: Venkatesh Sridharan Date: Wed, 17 Dec 2025 13:30:32 -0500 Subject: [PATCH 1/2] update to use latest version of sonatype/nexus plugin --- .github/workflows/deploy.yml | 4 ++-- build.gradle.kts | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 49d6dfcea..b064cf61e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,8 +31,8 @@ jobs: RELEASE_BUILD: true GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} - ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} + ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_TOKEN_USERNAME }} + ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_TOKEN_PASSWORD }} - name: Get tag name id: get_tag diff --git a/build.gradle.kts b/build.gradle.kts index a9a68c655..619ff42c9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,13 +2,17 @@ // License https://www.backblaze.com/using_b2_code.html plugins { - id("io.github.gradle-nexus.publish-plugin") version "1.3.0" + id("io.github.gradle-nexus.publish-plugin") version "2.0.0" } nexusPublishing { + repositories { + sonatype() + } repositories { sonatype { - nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/")) + // see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration + nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) } } } From ef21ff88972f8f30d17cdfc5c8e5af94d84f5568 Mon Sep 17 00:00:00 2001 From: Venkatesh Sridharan Date: Wed, 17 Dec 2025 13:33:16 -0500 Subject: [PATCH 2/2] Remove duplicate value --- build.gradle.kts | 3 --- 1 file changed, 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 619ff42c9..d91fac966 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,9 +6,6 @@ plugins { } nexusPublishing { - repositories { - sonatype() - } repositories { sonatype { // see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration