|
|
|
@ -9,19 +9,22 @@ repositories {
|
|
|
|
|
gradlePluginPortal()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
|
|
ext {
|
|
|
|
|
def propertiesFile = new File(new File("$projectDir").parentFile, "gradle.properties")
|
|
|
|
|
propertiesFile.withInputStream {
|
|
|
|
|
def properties = new Properties()
|
|
|
|
|
properties.load(it)
|
|
|
|
|
set("kotlinVersion", properties["kotlinVersion"])
|
|
|
|
|
set("springFrameworkVersion", properties["springFrameworkVersion"])
|
|
|
|
|
new File(new File("$projectDir").parentFile, "gradle.properties").withInputStream {
|
|
|
|
|
def properties = new Properties()
|
|
|
|
|
properties.load(it)
|
|
|
|
|
ext.set("kotlinVersion", properties["kotlinVersion"])
|
|
|
|
|
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 {
|
|
|
|
|
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
|
|
|
|
|
|
|
|
|
|