Skip to content

Commit bac0814

Browse files
committed
Changed Kotlin Jvm compile target to 11 to match Android
1 parent 17b9b68 commit bac0814

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

build.gradle.kts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
3+
14
// Top-level build file where you can add configuration options common to all sub-projects/modules.
25

36
buildscript {
@@ -52,3 +55,13 @@ dependencyAnalysis {
5255
tasks.register("clean", Delete::class) {
5356
delete(rootProject.buildDir)
5457
}
58+
59+
subprojects {
60+
afterEvaluate {
61+
tasks.withType(KotlinJvmCompile::class.java).configureEach {
62+
compilerOptions {
63+
jvmTarget.set(JvmTarget.JVM_11)
64+
}
65+
}
66+
}
67+
}

0 commit comments

Comments
 (0)