diff --git a/build.gradle b/build.gradle index 52a8b5e94..78c7c5e11 100644 --- a/build.gradle +++ b/build.gradle @@ -92,6 +92,12 @@ allprojects { } plugins.withId('org.jetbrains.kotlin.jvm') { compileKotlin.kotlinOptions.jvmTarget = compileTestKotlin.kotlinOptions.jvmTarget = JavaVersion.VERSION_21 + compileJava.sourceCompatibility = JavaVersion.VERSION_21 + compileJava.targetCompatibility = JavaVersion.VERSION_21 + compileTestJava.sourceCompatibility = JavaVersion.VERSION_21 + compileTestJava.targetCompatibility = JavaVersion.VERSION_21 + compileKotlin.kotlinOptions.jvmTarget = "21" + compileTestKotlin.kotlinOptions.jvmTarget = "21" compileKotlin.dependsOn ktlint } tasks.withType(AbstractArchiveTask).configureEach {