From bf29946fdcb04db9ca4e8fa20b30334676f91eb7 Mon Sep 17 00:00:00 2001 From: Enginex0 Date: Tue, 19 May 2026 03:23:55 +0100 Subject: [PATCH] build(gradle): set kotlin jvmTarget to JVM_21 Java sourceCompatibility/targetCompatibility were already 21, but the Kotlin compiler defaulted to JVM 17 bytecode, producing a toolchain skew warning on every build. Align the Kotlin target to match the Java target. --- app/build.gradle.kts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 1a9ff26..3fdf42b 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -2,6 +2,7 @@ import com.android.build.api.artifact.SingleArtifact import java.io.ByteArrayOutputStream import javax.inject.Inject import org.gradle.process.ExecOperations +import org.jetbrains.kotlin.gradle.dsl.JvmTarget plugins { alias(libs.plugins.android.application) @@ -65,6 +66,12 @@ android { } } +kotlin { + compilerOptions { + jvmTarget.set(JvmTarget.JVM_21) + } +} + dependencies { compileOnly(project(":stub")) compileOnly(libs.annotation)