From 3a2c3d2eb333e93d270ea87a66b2f7eba4ebd558 Mon Sep 17 00:00:00 2001 From: Jens Schulze Date: Tue, 10 Jun 2025 14:51:49 +0200 Subject: [PATCH] update Maven Release process --- .github/workflows/release-snapshot.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- gradle-scripts/publishing.gradle | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index f154ab8227f..f8400029693 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -49,7 +49,7 @@ jobs: - name: Release run: ./gradlew --build-cache publishToSonatype env: - CTP_OSS_USER: ${{ secrets.OSS_USER }} - CTP_OSS_SECRET: ${{ secrets.OSS_SECRET }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - run: rm -rf ~/.gradle/gradle.properties diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5fe2aabf00..03d45be9266 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,8 +39,8 @@ jobs: - run: ./gradlew -Pversion=$REF_NAME clean test javadoc publishToSonatype closeAndReleaseSonatypeStagingRepository env: REF_NAME: ${{ github.ref_name }} - CTP_OSS_USER: ${{ secrets.OSS_USER }} - CTP_OSS_SECRET: ${{ secrets.OSS_SECRET }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} diff --git a/gradle-scripts/publishing.gradle b/gradle-scripts/publishing.gradle index ea2fc8b3c62..bd6c8879bea 100644 --- a/gradle-scripts/publishing.gradle +++ b/gradle-scripts/publishing.gradle @@ -21,8 +21,10 @@ def excludeProjects = [ nexusPublishing { repositories { sonatype { - username = System.getenv('CTP_OSS_USER') - password = System.getenv('CTP_OSS_SECRET') + nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) + snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) + username = System.getenv('SONATYPE_USERNAME') + password = System.getenv('SONATYPE_PASSWORD') } } }