Skip to content

Commit

Permalink
Changed Kotlin Jvm compile target to 11 to match Android
Browse files Browse the repository at this point in the history
  • Loading branch information
LachlanMcKee committed Apr 4, 2024
1 parent 17b9b68 commit bac0814
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
Expand Down Expand Up @@ -52,3 +55,13 @@ dependencyAnalysis {
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}

subprojects {
afterEvaluate {
tasks.withType(KotlinJvmCompile::class.java).configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
}
}

0 comments on commit bac0814

Please sign in to comment.