Skip to content

Commit 5a028e0

Browse files
committed
Align buildSrc's Kotlin version with the main build
Closes gh-31387
1 parent 9f8a262 commit 5a028e0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

buildSrc/build.gradle

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ repositories {
1313
sourceCompatibility = 1.8
1414
targetCompatibility = 1.8
1515

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+
1625
dependencies {
1726
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
1827
implementation(platform("org.springframework:spring-framework-bom:5.3.15"))
@@ -21,8 +30,8 @@ dependencies {
2130
implementation("org.apache.maven:maven-embedder:3.6.2")
2231
implementation("org.asciidoctor:asciidoctor-gradle-jvm:3.3.2")
2332
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}")
2635
implementation("org.springframework:spring-core")
2736
implementation("org.springframework:spring-web")
2837
implementation("io.spring.javaformat:spring-javaformat-gradle-plugin:${javaFormatVersion}")

0 commit comments

Comments
 (0)