From 53d1e8697b5373ee0df687630b695286021a6a7d Mon Sep 17 00:00:00 2001 From: Seth Shelnutt Date: Tue, 23 Sep 2025 22:42:15 -0400 Subject: [PATCH] Update SONATYPE publishing This updates the SONATYPE url for the new staging API that serves as a shim. We also update to new ENVs for username/password for maven upload. I opted for new secrets in the repo, so I wouldn't override the old secrets while setting this up. The old secrets will be safe to delete after merging. --- .github/workflows/github_actions.yml | 4 ++-- build.gradle | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/github_actions.yml b/.github/workflows/github_actions.yml index 76fba552..3b2e785e 100644 --- a/.github/workflows/github_actions.yml +++ b/.github/workflows/github_actions.yml @@ -348,8 +348,8 @@ jobs: GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} GPG_SECRET_KEYS_ENC: ${{ secrets.GPG_SECRET_KEYS_ENC }} - SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + SONATYPE_CENTRAL_USERNAME: ${{ secrets.SONATYPE_CENTRAL_USERNAME }} + SONATYPE_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }} env: ORG_GRADLE_PROJECT_TILEDB_SERIALIZATION: ON ORG_GRADLE_PROJECT_TILEDB_S3: ON diff --git a/build.gradle b/build.gradle index 406d9010..4b51e2d2 100644 --- a/build.gradle +++ b/build.gradle @@ -14,13 +14,13 @@ version '0.29.1-SNAPSHOT' repositories { mavenCentral() maven { - url "https://oss.sonatype.org/content/repositories/snapshots" + url "https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots" } } nexusStaging { - username = System.getenv('SONATYPE_USERNAME') - password = System.getenv('SONATYPE_PASSWORD') + username = System.getenv('SONATYPE_CENTRAL_USERNAME') + password = System.getenv('SONATYPE_CENTRAL_PASSWORD') } java { @@ -247,12 +247,12 @@ publishing { repositories { maven { - def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" - def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" + def releasesRepoUrl = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/" + def snapshotsRepoUrl = "https://central.sonatype.com/repository/maven-snapshots/" url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl credentials { - username System.getenv('SONATYPE_USERNAME') - password System.getenv('SONATYPE_PASSWORD') + username System.getenv('SONATYPE_CENTRAL_USERNAME') + password System.getenv('SONATYPE_CENTRAL_PASSWORD') } } }