File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,15 @@ repositories {
13
13
sourceCompatibility = 1.8
14
14
targetCompatibility = 1.8
15
15
16
+ ext {
17
+ def propertiesFile = new File (new File (" $projectDir " ). parentFile, " gradle.properties" )
18
+ propertiesFile. withInputStream {
19
+ def properties = new Properties ()
20
+ properties. load(it)
21
+ set(" kotlinVersion" , properties[" kotlinVersion" ])
22
+ }
23
+ }
24
+
16
25
dependencies {
17
26
checkstyle " io.spring.javaformat:spring-javaformat-checkstyle:${ javaFormatVersion} "
18
27
implementation(platform(" org.springframework:spring-framework-bom:5.3.15" ))
@@ -21,8 +30,8 @@ dependencies {
21
30
implementation(" org.apache.maven:maven-embedder:3.6.2" )
22
31
implementation(" org.asciidoctor:asciidoctor-gradle-jvm:3.3.2" )
23
32
implementation(" org.gradle:test-retry-gradle-plugin:1.4.0" )
24
- implementation(" org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0 " )
25
- implementation(" org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.0 " )
33
+ implementation(" org.jetbrains.kotlin:kotlin-gradle-plugin:${ kotlinVersion } " )
34
+ implementation(" org.jetbrains.kotlin:kotlin-compiler-embeddable:${ kotlinVersion } " )
26
35
implementation(" org.springframework:spring-core" )
27
36
implementation(" org.springframework:spring-web" )
28
37
implementation(" io.spring.javaformat:spring-javaformat-gradle-plugin:${ javaFormatVersion} " )
You can’t perform that action at this time.
0 commit comments