Align buildSrc's Kotlin version with the main build

Closes gh-31387
This commit is contained in:
Andy Wilkinson 2022-06-14 18:58:16 +01:00
parent 9f8a262e6b
commit 5a028e059c

View File

@ -13,6 +13,15 @@ repositories {
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"])
}
}
dependencies {
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
implementation(platform("org.springframework:spring-framework-bom:5.3.15"))
@ -21,8 +30,8 @@ dependencies {
implementation("org.apache.maven:maven-embedder:3.6.2")
implementation("org.asciidoctor:asciidoctor-gradle-jvm:3.3.2")
implementation("org.gradle:test-retry-gradle-plugin:1.4.0")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0")
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.0")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:${kotlinVersion}")
implementation("org.springframework:spring-core")
implementation("org.springframework:spring-web")
implementation("io.spring.javaformat:spring-javaformat-gradle-plugin:${javaFormatVersion}")