mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
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
24 lines
505 B
Groovy
24 lines
505 B
Groovy
plugins {
|
|
id "org.jetbrains.kotlin.jvm" apply false // https://youtrack.jetbrains.com/issue/KT-30276
|
|
}
|
|
|
|
description = "Spring Boot Build"
|
|
|
|
allprojects {
|
|
group "org.springframework.boot"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
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 {
|
|
resolutionStrategy.cacheChangingModulesFor 60, "minutes"
|
|
}
|
|
}
|