Merge pull request #2146 from Luna712/toolchain

Add jdk toolchain
This commit is contained in:
Luna712
2025-11-18 10:22:57 -07:00
committed by GitHub
parent 4bf659e44a
commit 29f8f02eef
3 changed files with 12 additions and 0 deletions

View File

@@ -138,6 +138,14 @@ android {
targetCompatibility = JavaVersion.toVersion(javaTarget.target)
}
java {
// Use Java 17 toolchain even if a higher JDK runs the build.
// We still use Java 8 for now which higher JDKs have deprecated.
toolchain {
languageVersion.set(JavaLanguageVersion.of(libs.versions.jdkToolchain.get()))
}
}
lint {
abortOnError = false
checkReleaseBuilds = false

View File

@@ -23,3 +23,6 @@ android.nonTransitiveRClass=true
org.gradle.caching=true
org.gradle.configuration-cache=true
# Compiling with Java 8 is deprecated but we still use it for now
android.javaCompile.suppressSourceTargetDeprecationWarning=true

View File

@@ -48,6 +48,7 @@ workRuntime = "2.10.5"
workRuntimeKtx = "2.10.5"
jvmTarget = "1.8"
jdkToolchain = "17"
minSdk = "21"
compileSdk = "36"
targetSdk = "36"