Skip to content

Commit c2ba7be

Browse files
committed
🐛 Fix build.gradle.kts
1 parent cf747b2 commit c2ba7be

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

build.gradle.kts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2-
31
val springBootVersion = "3.4.5"
42
val junitPlatformVersion = "1.10.2"
53
val embeddedRedisVersion = "1.4.3"
@@ -11,7 +9,7 @@ val xmlunitVersion = "2.10.1"
119

1210
plugins {
1311
val springDependencyManagementVersion = "1.1.7"
14-
val kotlinVersion = "2.1.21"
12+
val kotlinVersion = "1.9.25"
1513
val adarshrTestLoggerVersion = "4.0.0"
1614
val sonarqubeVersion = "6.2.0.5505"
1715
val gradleReleasePluginVersion = "3.1.0"
@@ -32,7 +30,9 @@ plugins {
3230
group = "io.github.tobi-laa"
3331

3432
java {
35-
sourceCompatibility = JavaVersion.VERSION_21
33+
toolchain {
34+
languageVersion = JavaLanguageVersion.of(21)
35+
}
3636
withJavadocJar()
3737
withSourcesJar()
3838
}
@@ -76,10 +76,9 @@ dependencies {
7676
testImplementation("io.github.netmikey.logunit:logunit-core:$logunitVersion")
7777
}
7878

79-
tasks.withType<KotlinCompile> {
80-
kotlinOptions {
81-
freeCompilerArgs += "-Xjsr305=strict"
82-
jvmTarget = "21"
79+
kotlin {
80+
compilerOptions {
81+
freeCompilerArgs.addAll("-Xjsr305=strict")
8382
}
8483
}
8584

0 commit comments

Comments
 (0)