From bac0814cafc0247839ca8adf9801b366b600cdbb Mon Sep 17 00:00:00 2001 From: Lachlan McKee Date: Thu, 4 Apr 2024 10:53:36 +0100 Subject: [PATCH] Changed Kotlin Jvm compile target to 11 to match Android --- build.gradle.kts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 0db8ecb9..30db89c0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 { @@ -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) + } + } + } +}