
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
15 lines
460 B
Groovy
15 lines
460 B
Groovy
pluginManagement {
|
|
evaluate(new File("${gradle.parent.rootProject.rootDir}/buildSrc/SpringRepositorySupport.groovy")).apply(this)
|
|
repositories {
|
|
maven { url "file:${rootDir}/../test-repository"}
|
|
mavenCentral()
|
|
spring.mavenRepositoriesExcludingBootGroup()
|
|
}
|
|
resolutionStrategy {
|
|
eachPlugin {
|
|
if (requested.id.id == "org.springframework.boot") {
|
|
useModule "org.springframework.boot:spring-boot-gradle-plugin:${requested.version}"
|
|
}
|
|
}
|
|
}
|
|
} |