Create extension to configure Spring maven repositories

Create a small Groovy script that can be used in `settings.gradle`
files to extend `repositories` to support the various maven
repositories required for our build.

See gh-42333
This commit is contained in:
Phillip Webb
2024-09-26 19:33:34 -07:00
parent df73191cb0
commit 9836011ffd
25 changed files with 450 additions and 75 deletions

View File

@@ -12,18 +12,7 @@ apply plugin: "io.spring.dependency-management"
repositories {
maven { url "file:${rootDir}/../test-repository"}
mavenCentral()
maven {
url "https://repo.spring.io/milestone"
content {
excludeGroup "org.springframework.boot"
}
}
maven {
url "https://repo.spring.io/snapshot"
content {
excludeGroup "org.springframework.boot"
}
}
spring.mavenRepositoriesExcludingBootGroup()
}
configurations {

View File

@@ -1,19 +1,9 @@
pluginManagement {
evaluate(new File("${gradle.parent.rootProject.rootDir}/buildSrc/SpringRepositorySupport.groovy")).apply(this)
repositories {
maven { url "file:${rootDir}/../test-repository"}
mavenCentral()
maven {
url "https://repo.spring.io/milestone"
content {
excludeGroup "org.springframework.boot"
}
}
maven {
url "https://repo.spring.io/snapshot"
content {
excludeGroup "org.springframework.boot"
}
}
spring.mavenRepositoriesExcludingBootGroup()
}
resolutionStrategy {
eachPlugin {