Skip to content

Commit be5b174

Browse files
authored
Merge pull request #239 from bkdevops-projects/fix/update-sonatype-url
Fix: Update Sonatype URL
2 parents 67c5a48 + 9d56a18 commit be5b174

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

devops-boot-project/devops-boot-tools/devops-boot-gradle-plugin/src/main/kotlin/com/tencent/devops/conventions/RepositoryConvention.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class RepositoryConvention {
3939
// snapshot
4040
maven {
4141
it.name = "MavenSnapshot"
42-
it.url = URI("https://oss.sonatype.org/content/repositories/snapshots/")
42+
it.url = URI("https://central.sonatype.com/content/repositories/snapshots/")
4343
it.mavenContent { descriptor ->
4444
descriptor.snapshotsOnly()
4545
}

devops-boot-project/devops-boot-tools/devops-publish-gradle-plugin/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ key=value
6565

6666
| 属性 | 类型 | 默认值 | 说明 |
6767
| --------------- | ------- | ------ | ---------- |
68-
| releaseRepoUrl | string | [https://oss.sonatype.org/service/local/](https://oss.sonatype.org/service/local/) | release仓库地址,默然为SONATYPE中央仓库地址 |
69-
| snapshotRepoUrl | string | [https://oss.sonatype.org/content/repositories/snapshots/](https://oss.sonatype.org/content/repositories/snapshots/) | snapshot仓库地址,默然为SONATYPE中央仓库地址 |
68+
| releaseRepoUrl | string | [https://central.sonatype.com/service/local/](https://central.sonatype.com/service/local/) | release仓库地址,默然为SONATYPE中央仓库地址 |
69+
| snapshotRepoUrl | string | [https://central.sonatype.com/content/repositories/snapshots/](https://central.sonatype.com/content/repositories/snapshots/) | snapshot仓库地址,默然为SONATYPE中央仓库地址 |
7070
| repoUsername | string | null | 仓库认证用户名 |
7171
| repoPassword | string | null | 仓库认证密码 |
7272

devops-boot-sample/settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pluginManagement {
1414
mavenCentral()
1515
gradlePluginPortal()
1616
maven {
17-
setUrl("https://oss.sonatype.org/content/repositories/snapshots/")
17+
setUrl("https://central.sonatype.com/content/repositories/snapshots/")
1818
}
1919
}
2020
}

docs/contribute.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ devops-framework/
3030
./gradlew publishToMavenLocal
3131
```
3232

33-
- 发布jar包到sonatype中央仓库,同时会发布插件jar包
33+
- 发布jar包到central.sonatype.com中央仓库,同时会发布插件jar包
3434
```shell script
3535
./gradlew publish
3636
```
@@ -43,8 +43,8 @@ devops-framework/
4343
### 环境变量准备
4444
当需要发布到中央仓库时,会读取以下环境变量:
4545

46-
- `ORG_GRADLE_PROJECT_repoUsername` sonatype用户名
47-
- `ORG_GRADLE_PROJECT_repoPassword` sonatype密码
46+
- `ORG_GRADLE_PROJECT_repoUsername` central.sonatype.com用户名
47+
- `ORG_GRADLE_PROJECT_repoPassword` central.sonatype.com密码
4848
- `ORG_GRADLE_PROJECT_signingKey` gpg签名key
4949
- `ORG_GRADLE_PROJECT_signingKeyId` gpg签名key id
5050
- `ORG_GRADLE_PROJECT_signingPassword` gpg签名密码

docs/dependency/repository.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ https://mirrors.tencent.com/nexus/repository/gradle-plugins/
2424
```
2525
#### 三. snapshot库
2626
```
27-
https://oss.sonatype.org/content/repositories/snapshots/
27+
https://central.sonatype.com/content/repositories/snapshots/
2828
```

docs/plugin/devops-boot-gradle-plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ plugins {
5656
1. [Tencent Mirrors](https://mirrors.tencent.com/nexus/repository/maven-public/)
5757
2. mavenCentral
5858
3. jcenter
59-
4. [MavenSnapshotRepo](https://oss.sonatype.org/content/repositories/snapshots/)
59+
4. [MavenSnapshotRepo](https://central.sonatype.com/content/repositories/snapshots/)
6060

6161
### 2. 配置依赖管理
6262
- 添加`dependency-management`插件

docs/plugin/devops-publish-gradle-plugin.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ key=value
6666

6767
| 属性 | 类型 | 默认值 | 说明 |
6868
| --------------- | ------- | ------ | ---------- |
69-
| releaseRepoUrl | string | [https://oss.sonatype.org/service/local/](https://oss.sonatype.org/service/local/) | release仓库地址,默然为SONATYPE中央仓库地址 |
70-
| snapshotRepoUrl | string | [https://oss.sonatype.org/content/repositories/snapshots/](https://oss.sonatype.org/content/repositories/snapshots/) | snapshot仓库地址,默然为SONATYPE中央仓库地址 |
69+
| releaseRepoUrl | string | [https://central.sonatype.com/service/local/](https://central.sonatype.com/service/local/) | release仓库地址,默然为SONATYPE中央仓库地址 |
70+
| snapshotRepoUrl | string | [https://central.sonatype.com/content/repositories/snapshots/](https://central.sonatype.com/content/repositories/snapshots/) | snapshot仓库地址,默然为SONATYPE中央仓库地址 |
7171
| repoUsername | string | null | 仓库认证用户名 |
7272
| repoPassword | string | null | 仓库认证密码 |
7373

0 commit comments

Comments
 (0)