File tree Expand file tree Collapse file tree
devops-boot-project/devops-boot-tools
devops-boot-gradle-plugin/src/main/kotlin/com/tencent/devops/conventions
devops-publish-gradle-plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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签名密码
Original file line number Diff line number Diff 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```
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ plugins {
56561 . [ Tencent Mirrors] ( https://mirrors.tencent.com/nexus/repository/maven-public/ )
57572 . mavenCentral
58583 . 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 ` 插件
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments