|
|
@ -9,19 +9,22 @@ repositories {
|
|
|
|
gradlePluginPortal()
|
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
new File(new File("$projectDir").parentFile, "gradle.properties").withInputStream {
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
def properties = new Properties()
|
|
|
|
|
|
|
|
properties.load(it)
|
|
|
|
ext {
|
|
|
|
ext.set("kotlinVersion", properties["kotlinVersion"])
|
|
|
|
def propertiesFile = new File(new File("$projectDir").parentFile, "gradle.properties")
|
|
|
|
ext.set("springFrameworkVersion", properties["springFrameworkVersion"])
|
|
|
|
propertiesFile.withInputStream {
|
|
|
|
if (properties["springFrameworkVersion"].contains("-")) {
|
|
|
|
def properties = new Properties()
|
|
|
|
repositories {
|
|
|
|
properties.load(it)
|
|
|
|
maven { url "https://repo.spring.io/milestone" }
|
|
|
|
set("kotlinVersion", properties["kotlinVersion"])
|
|
|
|
maven { url "https://repo.spring.io/snapshot" }
|
|
|
|
set("springFrameworkVersion", properties["springFrameworkVersion"])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
dependencies {
|
|
|
|
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
|
|
|
|
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
|
|
|
|
|
|
|
|
|
|
|
|