From 6762f7335dc6c10aa7343953028dd84bd95d6bde Mon Sep 17 00:00:00 2001 From: Michael Jahn Date: Mon, 1 Dec 2025 16:32:53 +0100 Subject: [PATCH 1/2] Update publish config --- build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 75ee56d..b135483 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id("io.github.gradle-nexus.publish-plugin") version "1.1.0" + id("io.github.gradle-nexus.publish-plugin") version "2.0.0" } autoConfigure { @@ -99,8 +99,8 @@ private static String getPublicationName(Project project) { nexusPublishing { repositories { sonatype { - nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/")) - snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")) + 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("MAVEN_USERNAME")) password.set(System.getenv("MAVEN_PASSWORD")) } From d00180e2c82bcf84c963436ab2d769b3e6c80ad3 Mon Sep 17 00:00:00 2001 From: Michael Jahn Date: Thu, 11 Dec 2025 21:29:07 +0100 Subject: [PATCH 2/2] Use env vars for publish pipeline --- .github/workflows/github-publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/github-publish.yml b/.github/workflows/github-publish.yml index f7ac420..d65b433 100644 --- a/.github/workflows/github-publish.yml +++ b/.github/workflows/github-publish.yml @@ -40,6 +40,8 @@ jobs: env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }} + ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_TOKEN }} PGP_SECRET: ${{ secrets.PGP_SECRET }} PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} - name: Publish Test Report