Skip to content

Commit b5e8391

Browse files
authored
Merge pull request #245 from yaoxuwan/snapshot
fix: devops-boot-gradle-plugin 修改仓库配置顺序 #244
2 parents 6faab78 + b190022 commit b5e8391

File tree

1 file changed

+8
-8
lines changed
  • devops-boot-project/devops-boot-tools/devops-boot-gradle-plugin/src/main/kotlin/com/tencent/devops/conventions

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ class RepositoryConvention {
2626
project.findPropertyOrNull("mavenRepoUrl")?.let { url ->
2727
maven { it.url = URI(url) }
2828
}
29+
// snapshot
30+
maven {
31+
it.name = "MavenSnapshot"
32+
it.url = URI("https://central.sonatype.com/repository/maven-snapshots/")
33+
it.mavenContent { descriptor ->
34+
descriptor.snapshotsOnly()
35+
}
36+
}
2937
// release
3038
if (System.getenv("GITHUB_WORKFLOW") == null) {
3139
maven { it.url = URI("https://mirrors.tencent.com/nexus/repository/maven-public") }
@@ -36,14 +44,6 @@ class RepositoryConvention {
3644
}
3745
// spring
3846
maven { it.url = URI("https://repo.spring.io/milestone") }
39-
// snapshot
40-
maven {
41-
it.name = "MavenSnapshot"
42-
it.url = URI("https://central.sonatype.com/repository/maven-snapshots/")
43-
it.mavenContent { descriptor ->
44-
descriptor.snapshotsOnly()
45-
}
46-
}
4747
mavenLocal()
4848
}
4949
}

0 commit comments

Comments
 (0)