Merge pull request #2883 from Iamlooker/fix/jvm-configuration
Some checks failed
Android CI / build (Foss) (push) Waiting to run
Android CI / build (Gplay) (push) Waiting to run
i18n check / build (push) Waiting to run
Write contributors to file / Write contributors to file (push) Has been cancelled

build: Fix conflicting JVM setup
This commit is contained in:
Sylvia van Os 2025-12-20 12:55:58 +01:00 committed by GitHub
commit 2af9d58f06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
import com.android.build.gradle.internal.tasks.factory.dependsOn
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.com.android.application)
@ -74,16 +75,6 @@ android {
}
}
compileOptions {
encoding = "UTF-8"
// Flag to enable support for the new language APIs
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
sourceSets {
getByName("test") {
resources.srcDirs("src/test/res")
@ -102,10 +93,16 @@ android {
lint {
lintConfig = file("lint.xml")
}
kotlinOptions {
jvmTarget = "21"
kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_21
}
}
compileOptions {
encoding = "UTF-8"
// Flag to enable support for the new language APIs
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}