mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Allow buildSrc to resolve Framework snapshots
Closes gh-35297
This commit is contained in:
parent
75e9a7e95b
commit
3a45d46583
@ -9,19 +9,22 @@ repositories {
|
|||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
new File(new File("$projectDir").parentFile, "gradle.properties").withInputStream {
|
||||||
targetCompatibility = 1.8
|
|
||||||
|
|
||||||
ext {
|
|
||||||
def propertiesFile = new File(new File("$projectDir").parentFile, "gradle.properties")
|
|
||||||
propertiesFile.withInputStream {
|
|
||||||
def properties = new Properties()
|
def properties = new Properties()
|
||||||
properties.load(it)
|
properties.load(it)
|
||||||
set("kotlinVersion", properties["kotlinVersion"])
|
ext.set("kotlinVersion", properties["kotlinVersion"])
|
||||||
set("springFrameworkVersion", properties["springFrameworkVersion"])
|
ext.set("springFrameworkVersion", properties["springFrameworkVersion"])
|
||||||
|
if (properties["springFrameworkVersion"].contains("-")) {
|
||||||
|
repositories {
|
||||||
|
maven { url "https://repo.spring.io/milestone" }
|
||||||
|
maven { url "https://repo.spring.io/snapshot" }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourceCompatibility = 1.8
|
||||||
|
targetCompatibility = 1.8
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
|
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user