Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
env:
ORG_GRADLE_PROJECT_repoUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_repoPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_snapshotRepoUrl: "https://central.sonatype.com/content/repositories/snapshots/"
ORG_GRADLE_PROJECT_snapshotRepoUrl: "https://central.sonatype.com/repository/maven-snapshots/"
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class RepositoryConvention {
// snapshot
maven {
it.name = "MavenSnapshot"
it.url = URI("https://central.sonatype.com/content/repositories/snapshots/")
it.url = URI("https://central.sonatype.com/repository/maven-snapshots/")
it.mavenContent { descriptor ->
descriptor.snapshotsOnly()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ key=value
| 属性 | 类型 | 默认值 | 说明 |
| --------------- | ------- | ------ | ---------- |
| 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中央仓库地址 |
| snapshotRepoUrl | string | [https://central.sonatype.com/repository/maven-snapshots/](https://central.sonatype.com/repository/maven-snapshots/) | snapshot仓库地址,默然为SONATYPE中央仓库地址 |
| repoUsername | string | null | 仓库认证用户名 |
| repoPassword | string | null | 仓库认证密码 |

Expand Down
2 changes: 1 addition & 1 deletion devops-boot-sample/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pluginManagement {
mavenCentral()
gradlePluginPortal()
maven {
setUrl("https://central.sonatype.com/content/repositories/snapshots/")
setUrl("https://central.sonatype.com/repository/maven-snapshots/")
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions docs/contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ devops-framework/
./gradlew publishToMavenLocal
```

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

- `ORG_GRADLE_PROJECT_repoUsername` central.sonatype.com用户名
- `ORG_GRADLE_PROJECT_repoPassword` central.sonatype.com密码
- `ORG_GRADLE_PROJECT_repoUsername` Sonatype用户名
- `ORG_GRADLE_PROJECT_repoPassword` Sonatype密码
- `ORG_GRADLE_PROJECT_signingKey` gpg签名key
- `ORG_GRADLE_PROJECT_signingKeyId` gpg签名key id
- `ORG_GRADLE_PROJECT_signingPassword` gpg签名密码
Expand Down
2 changes: 1 addition & 1 deletion docs/dependency/repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ https://mirrors.tencent.com/nexus/repository/gradle-plugins/
```
#### 三. snapshot库
```
https://central.sonatype.com/content/repositories/snapshots/
https://central.sonatype.com/repository/maven-snapshots/
```
2 changes: 1 addition & 1 deletion docs/plugin/devops-boot-gradle-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ plugins {
1. [Tencent Mirrors](https://mirrors.tencent.com/nexus/repository/maven-public/)
2. mavenCentral
3. jcenter
4. [MavenSnapshotRepo](https://central.sonatype.com/content/repositories/snapshots/)
4. [MavenSnapshotRepo](https://central.sonatype.com/repository/maven-snapshots/)

### 2. 配置依赖管理
- 添加`dependency-management`插件
Expand Down
2 changes: 1 addition & 1 deletion docs/plugin/devops-publish-gradle-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ key=value
| 属性 | 类型 | 默认值 | 说明 |
| --------------- | ------- | ------ | ---------- |
| 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中央仓库地址 |
| snapshotRepoUrl | string | [https://central.sonatype.com/repository/maven-snapshots/](https://central.sonatype.com/repository/maven-snapshots/) | snapshot仓库地址,默然为SONATYPE中央仓库地址 |
| repoUsername | string | null | 仓库认证用户名 |
| repoPassword | string | null | 仓库认证密码 |

Expand Down