File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,22 @@ repositories {
9
9
gradlePluginPortal()
10
10
}
11
11
12
- sourceCompatibility = 1.8
13
- targetCompatibility = 1.8
14
-
15
- ext {
16
- def propertiesFile = new File ( new File ( " $p rojectDir " ) . parentFile, " gradle. properties" )
17
- propertiesFile . withInputStream {
18
- def properties = new Properties ()
19
- properties . load(it)
20
- set( " kotlinVersion " , properties[ " kotlinVersion " ])
21
- set( " springFrameworkVersion " , properties[ " springFrameworkVersion " ])
12
+ new File ( new File ( " $p rojectDir " ) . parentFile, " gradle.properties " ) . withInputStream {
13
+ def properties = new Properties ()
14
+ properties . load(it)
15
+ ext. set( " kotlinVersion " , properties[ " kotlinVersion " ])
16
+ ext . set( " springFrameworkVersion " , properties[ " springFrameworkVersion " ] )
17
+ if (properties[ " springFrameworkVersion " ] . contains( " - " )) {
18
+ repositories {
19
+ maven { url " https://repo.spring.io/milestone " }
20
+ maven { url " https://repo.spring.io/snapshot " }
21
+ }
22
22
}
23
23
}
24
24
25
+ sourceCompatibility = 1.8
26
+ targetCompatibility = 1.8
27
+
25
28
dependencies {
26
29
checkstyle " io.spring.javaformat:spring-javaformat-checkstyle:${ javaFormatVersion} "
27
30
You can’t perform that action at this time.
0 commit comments