mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Configure repositories based on the version that is being built
https://repo.spring.io/snapshot should only be available when building a BUILD-SNAPSHOT. https://repo.spring.io/milestone should only be available when not building a RELEASE (a BUILD-SNAPSHOT, Mn, or RCn). Closes gh-19700
This commit is contained in:
parent
01a0a54f78
commit
820c671ddd
|
@ -9,8 +9,12 @@ allprojects {
|
|||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url "https://repo.spring.io/milestone" }
|
||||
maven { url "https://repo.spring.io/snapshot" }
|
||||
if (!version.endsWith('RELEASE')) {
|
||||
maven { url "https://repo.spring.io/milestone" }
|
||||
}
|
||||
if (version.endsWith('BUILD-SNAPSHOT')) {
|
||||
maven { url "https://repo.spring.io/snapshot" }
|
||||
}
|
||||
}
|
||||
|
||||
configurations.all {
|
||||
|
|
|
@ -2,7 +2,9 @@ pluginManagement {
|
|||
repositories {
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
maven { url "https://repo.spring.io/snapshot" }
|
||||
if (version.endsWith('BUILD-SNAPSHOT')) {
|
||||
maven { url "https://repo.spring.io/snapshot" }
|
||||
}
|
||||
}
|
||||
resolutionStrategy {
|
||||
eachPlugin {
|
||||
|
|
Loading…
Reference in New Issue
Block a user