From 8e9df10a7e360a27f9bb0021f6aa7531021b1518 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 8 Aug 2025 08:32:32 +0000 Subject: [PATCH] Fix: Update Sonatype release and snapshot repository URLs - Updates the Sonatype snapshot repository URL to `https://central.sonatype.com/repository/maven-snapshots/`. - Updates the Sonatype release repository URL to `https://ossrh-staging-api.central.sonatype.com/service/local/`. - These changes are based on the official Sonatype documentation for publishing via the new Central Portal and its OSSRH compatibility API. - URLs have been updated in the GitHub Actions workflows and all relevant documentation files. --- .github/workflows/release.yml | 1 + .../devops-boot-tools/devops-publish-gradle-plugin/README.md | 2 +- docs/plugin/devops-publish-gradle-plugin.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b5be9e..460919a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -63,6 +63,7 @@ jobs: run: ./gradlew build - name: Publish release package env: + ORG_GRADLE_PROJECT_releaseRepoUrl: "https://ossrh-staging-api.central.sonatype.com/service/local/" ORG_GRADLE_PROJECT_repoUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_repoPassword: ${{ secrets.SONATYPE_PASSWORD }} ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }} diff --git a/devops-boot-project/devops-boot-tools/devops-publish-gradle-plugin/README.md b/devops-boot-project/devops-boot-tools/devops-publish-gradle-plugin/README.md index 32f2cb6..7c62dc0 100644 --- a/devops-boot-project/devops-boot-tools/devops-publish-gradle-plugin/README.md +++ b/devops-boot-project/devops-boot-tools/devops-publish-gradle-plugin/README.md @@ -65,7 +65,7 @@ key=value | 属性 | 类型 | 默认值 | 说明 | | --------------- | ------- | ------ | ---------- | -| releaseRepoUrl | string | [https://central.sonatype.com/service/local/](https://central.sonatype.com/service/local/) | release仓库地址,默然为SONATYPE中央仓库地址 | +| releaseRepoUrl | string | [https://ossrh-staging-api.central.sonatype.com/service/local/](https://ossrh-staging-api.central.sonatype.com/service/local/) | release仓库地址,默然为SONATYPE中央仓库地址 | | snapshotRepoUrl | string | [https://central.sonatype.com/repository/maven-snapshots/](https://central.sonatype.com/repository/maven-snapshots/) | snapshot仓库地址,默然为SONATYPE中央仓库地址 | | repoUsername | string | null | 仓库认证用户名 | | repoPassword | string | null | 仓库认证密码 | diff --git a/docs/plugin/devops-publish-gradle-plugin.md b/docs/plugin/devops-publish-gradle-plugin.md index 4af71f2..2e73c3c 100644 --- a/docs/plugin/devops-publish-gradle-plugin.md +++ b/docs/plugin/devops-publish-gradle-plugin.md @@ -66,7 +66,7 @@ key=value | 属性 | 类型 | 默认值 | 说明 | | --------------- | ------- | ------ | ---------- | -| releaseRepoUrl | string | [https://central.sonatype.com/service/local/](https://central.sonatype.com/service/local/) | release仓库地址,默然为SONATYPE中央仓库地址 | +| releaseRepoUrl | string | [https://ossrh-staging-api.central.sonatype.com/service/local/](https://ossrh-staging-api.central.sonatype.com/service/local/) | release仓库地址,默然为SONATYPE中央仓库地址 | | snapshotRepoUrl | string | [https://central.sonatype.com/repository/maven-snapshots/](https://central.sonatype.com/repository/maven-snapshots/) | snapshot仓库地址,默然为SONATYPE中央仓库地址 | | repoUsername | string | null | 仓库认证用户名 | | repoPassword | string | null | 仓库认证密码 |