Skip to content

Commit f7e18f6

Browse files
authored
Merge pull request #241 from bkdevops-projects/fix/update-sonatype-url
Fix: Update Sonatype URL
2 parents b13d137 + 9278a66 commit f7e18f6

8 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/publish-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
env:
3030
ORG_GRADLE_PROJECT_repoUsername: ${{ secrets.SONATYPE_USERNAME }}
3131
ORG_GRADLE_PROJECT_repoPassword: ${{ secrets.SONATYPE_PASSWORD }}
32-
ORG_GRADLE_PROJECT_snapshotRepoUrl: "https://central.sonatype.com/content/repositories/snapshots/"
32+
ORG_GRADLE_PROJECT_snapshotRepoUrl: "https://central.sonatype.com/repository/maven-snapshots/"
3333
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
3434
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }}
3535
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}

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://central.sonatype.com/content/repositories/snapshots/")
42+
it.url = URI("https://central.sonatype.com/repository/maven-snapshots/")
4343
it.mavenContent { descriptor ->
4444
descriptor.snapshotsOnly()
4545
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ key=value
6666
| 属性 | 类型 | 默认值 | 说明 |
6767
| --------------- | ------- | ------ | ---------- |
6868
| 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中央仓库地址 |
69+
| snapshotRepoUrl | string | [https://central.sonatype.com/repository/maven-snapshots/](https://central.sonatype.com/repository/maven-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://central.sonatype.com/content/repositories/snapshots/")
17+
setUrl("https://central.sonatype.com/repository/maven-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包到central.sonatype.com中央仓库,同时会发布插件jar包
33+
- 发布jar包到Sonatype中央仓库,同时会发布插件jar包
3434
```shell script
3535
./gradlew publish
3636
```
@@ -43,8 +43,8 @@ devops-framework/
4343
### 环境变量准备
4444
当需要发布到中央仓库时,会读取以下环境变量:
4545

46-
- `ORG_GRADLE_PROJECT_repoUsername` central.sonatype.com用户名
47-
- `ORG_GRADLE_PROJECT_repoPassword` central.sonatype.com密码
46+
- `ORG_GRADLE_PROJECT_repoUsername` Sonatype用户名
47+
- `ORG_GRADLE_PROJECT_repoPassword` Sonatype密码
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://central.sonatype.com/content/repositories/snapshots/
27+
https://central.sonatype.com/repository/maven-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://central.sonatype.com/content/repositories/snapshots/)
59+
4. [MavenSnapshotRepo](https://central.sonatype.com/repository/maven-snapshots/)
6060

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ key=value
6767
| 属性 | 类型 | 默认值 | 说明 |
6868
| --------------- | ------- | ------ | ---------- |
6969
| 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中央仓库地址 |
70+
| snapshotRepoUrl | string | [https://central.sonatype.com/repository/maven-snapshots/](https://central.sonatype.com/repository/maven-snapshots/) | snapshot仓库地址,默然为SONATYPE中央仓库地址 |
7171
| repoUsername | string | null | 仓库认证用户名 |
7272
| repoPassword | string | null | 仓库认证密码 |
7373

0 commit comments

Comments
 (0)