diff --git a/devops-boot-project/devops-boot-tools/devops-boot-gradle-plugin/src/main/kotlin/com/tencent/devops/conventions/RepositoryConvention.kt b/devops-boot-project/devops-boot-tools/devops-boot-gradle-plugin/src/main/kotlin/com/tencent/devops/conventions/RepositoryConvention.kt index 05cfde5..3d08b3c 100644 --- a/devops-boot-project/devops-boot-tools/devops-boot-gradle-plugin/src/main/kotlin/com/tencent/devops/conventions/RepositoryConvention.kt +++ b/devops-boot-project/devops-boot-tools/devops-boot-gradle-plugin/src/main/kotlin/com/tencent/devops/conventions/RepositoryConvention.kt @@ -39,7 +39,7 @@ class RepositoryConvention { // snapshot maven { it.name = "MavenSnapshot" - it.url = URI("https://oss.sonatype.org/content/repositories/snapshots/") + it.url = URI("https://central.sonatype.com/content/repositories/snapshots/") it.mavenContent { descriptor -> descriptor.snapshotsOnly() } 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 f205941..d6b14c9 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,8 +65,8 @@ key=value | 属性 | 类型 | 默认值 | 说明 | | --------------- | ------- | ------ | ---------- | -| releaseRepoUrl | string | [https://oss.sonatype.org/service/local/](https://oss.sonatype.org/service/local/) | release仓库地址,默然为SONATYPE中央仓库地址 | -| snapshotRepoUrl | string | [https://oss.sonatype.org/content/repositories/snapshots/](https://oss.sonatype.org/content/repositories/snapshots/) | snapshot仓库地址,默然为SONATYPE中央仓库地址 | +| releaseRepoUrl | string | [https://central.sonatype.com/service/local/](https://central.sonatype.com/service/local/) | release仓库地址,默然为SONATYPE中央仓库地址 | +| snapshotRepoUrl | string | [https://central.sonatype.com/content/repositories/snapshots/](https://central.sonatype.com/content/repositories/snapshots/) | snapshot仓库地址,默然为SONATYPE中央仓库地址 | | repoUsername | string | null | 仓库认证用户名 | | repoPassword | string | null | 仓库认证密码 | diff --git a/devops-boot-sample/settings.gradle.kts b/devops-boot-sample/settings.gradle.kts index 8228d56..b904f21 100644 --- a/devops-boot-sample/settings.gradle.kts +++ b/devops-boot-sample/settings.gradle.kts @@ -14,7 +14,7 @@ pluginManagement { mavenCentral() gradlePluginPortal() maven { - setUrl("https://oss.sonatype.org/content/repositories/snapshots/") + setUrl("https://central.sonatype.com/content/repositories/snapshots/") } } } diff --git a/docs/contribute.md b/docs/contribute.md index c2543c2..e3b6769 100644 --- a/docs/contribute.md +++ b/docs/contribute.md @@ -30,7 +30,7 @@ devops-framework/ ./gradlew publishToMavenLocal ``` -- 发布jar包到sonatype中央仓库,同时会发布插件jar包 +- 发布jar包到central.sonatype.com中央仓库,同时会发布插件jar包 ```shell script ./gradlew publish ``` @@ -43,8 +43,8 @@ devops-framework/ ### 环境变量准备 当需要发布到中央仓库时,会读取以下环境变量: -- `ORG_GRADLE_PROJECT_repoUsername` sonatype用户名 -- `ORG_GRADLE_PROJECT_repoPassword` sonatype密码 +- `ORG_GRADLE_PROJECT_repoUsername` central.sonatype.com用户名 +- `ORG_GRADLE_PROJECT_repoPassword` central.sonatype.com密码 - `ORG_GRADLE_PROJECT_signingKey` gpg签名key - `ORG_GRADLE_PROJECT_signingKeyId` gpg签名key id - `ORG_GRADLE_PROJECT_signingPassword` gpg签名密码 diff --git a/docs/dependency/repository.md b/docs/dependency/repository.md index 3d03a62..f6c920a 100644 --- a/docs/dependency/repository.md +++ b/docs/dependency/repository.md @@ -24,5 +24,5 @@ https://mirrors.tencent.com/nexus/repository/gradle-plugins/ ``` #### 三. snapshot库 ``` -https://oss.sonatype.org/content/repositories/snapshots/ +https://central.sonatype.com/content/repositories/snapshots/ ``` diff --git a/docs/plugin/devops-boot-gradle-plugin.md b/docs/plugin/devops-boot-gradle-plugin.md index a90f2f8..8397acc 100644 --- a/docs/plugin/devops-boot-gradle-plugin.md +++ b/docs/plugin/devops-boot-gradle-plugin.md @@ -56,7 +56,7 @@ plugins { 1. [Tencent Mirrors](https://mirrors.tencent.com/nexus/repository/maven-public/) 2. mavenCentral 3. jcenter -4. [MavenSnapshotRepo](https://oss.sonatype.org/content/repositories/snapshots/) +4. [MavenSnapshotRepo](https://central.sonatype.com/content/repositories/snapshots/) ### 2. 配置依赖管理 - 添加`dependency-management`插件 diff --git a/docs/plugin/devops-publish-gradle-plugin.md b/docs/plugin/devops-publish-gradle-plugin.md index e9b1c98..90f8036 100644 --- a/docs/plugin/devops-publish-gradle-plugin.md +++ b/docs/plugin/devops-publish-gradle-plugin.md @@ -66,8 +66,8 @@ key=value | 属性 | 类型 | 默认值 | 说明 | | --------------- | ------- | ------ | ---------- | -| releaseRepoUrl | string | [https://oss.sonatype.org/service/local/](https://oss.sonatype.org/service/local/) | release仓库地址,默然为SONATYPE中央仓库地址 | -| snapshotRepoUrl | string | [https://oss.sonatype.org/content/repositories/snapshots/](https://oss.sonatype.org/content/repositories/snapshots/) | snapshot仓库地址,默然为SONATYPE中央仓库地址 | +| releaseRepoUrl | string | [https://central.sonatype.com/service/local/](https://central.sonatype.com/service/local/) | release仓库地址,默然为SONATYPE中央仓库地址 | +| snapshotRepoUrl | string | [https://central.sonatype.com/content/repositories/snapshots/](https://central.sonatype.com/content/repositories/snapshots/) | snapshot仓库地址,默然为SONATYPE中央仓库地址 | | repoUsername | string | null | 仓库认证用户名 | | repoPassword | string | null | 仓库认证密码 |