From 18dbb60db12acaa4346d884a3df18dc9bdde6cef Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Sat, 28 Jun 2025 11:03:49 +0200 Subject: [PATCH 1/3] Debug Maven Central upload --- .github/workflows/release.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b862b1b..3c494de 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,12 +24,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Fail if not running on main branch - if: ${{ github.ref != 'refs/heads/main' }} - uses: actions/github-script@v7 - with: - script: | - core.setFailed('Not running on main branch, github.ref is ${{ github.ref }}. Please start this workflow only on main') + #- name: Fail if not running on main branch + # if: ${{ github.ref != 'refs/heads/main' }} + # uses: actions/github-script@v7 + # with: + # script: | + # core.setFailed('Not running on main branch, github.ref is ${{ github.ref }}. Please start this workflow only on main') - uses: actions/setup-java@v4 with: @@ -44,7 +44,9 @@ jobs: - name: Publish to Maven Central if: ${{ !inputs.skip-deploy-maven-central }} - run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --warning-mode all + run: | + #./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --info --warning-mode all + ./gradlew publishToSonatype closeSonatypeStagingRepository --info --warning-mode all env: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.MAVEN_CENTRAL_PORTAL_TOKEN }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.MAVEN_CENTRAL_PORTAL_USERNAME }} From 46c4ed57a76d0872e4e00a38a3f9ecac5a4e9185 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Sat, 28 Jun 2025 11:05:52 +0200 Subject: [PATCH 2/3] Remove staging profile id --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 69d477c..ebab869 100644 --- a/build.gradle +++ b/build.gradle @@ -122,7 +122,7 @@ nexusPublishing { packageGroup = project.group repositories { sonatype { - stagingProfileId = "546ea6ce74787e" + //stagingProfileId = "546ea6ce74787e" nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) } From bcfc89267afcfba617c5f5adf7dcec31fb3a0936 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Sat, 28 Jun 2025 11:14:27 +0200 Subject: [PATCH 3/3] Cleanup --- .github/workflows/release.yml | 15 +++++++-------- build.gradle | 1 - 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c494de..94aebb9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,12 +24,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 - #- name: Fail if not running on main branch - # if: ${{ github.ref != 'refs/heads/main' }} - # uses: actions/github-script@v7 - # with: - # script: | - # core.setFailed('Not running on main branch, github.ref is ${{ github.ref }}. Please start this workflow only on main') + - name: Fail if not running on main branch + if: ${{ github.ref != 'refs/heads/main' }} + uses: actions/github-script@v7 + with: + script: | + core.setFailed('Not running on main branch, github.ref is ${{ github.ref }}. Please start this workflow only on main') - uses: actions/setup-java@v4 with: @@ -45,8 +45,7 @@ jobs: - name: Publish to Maven Central if: ${{ !inputs.skip-deploy-maven-central }} run: | - #./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --info --warning-mode all - ./gradlew publishToSonatype closeSonatypeStagingRepository --info --warning-mode all + ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --info --warning-mode all env: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.MAVEN_CENTRAL_PORTAL_TOKEN }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.MAVEN_CENTRAL_PORTAL_USERNAME }} diff --git a/build.gradle b/build.gradle index ebab869..e5197a7 100644 --- a/build.gradle +++ b/build.gradle @@ -122,7 +122,6 @@ nexusPublishing { packageGroup = project.group repositories { sonatype { - //stagingProfileId = "546ea6ce74787e" nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) }