Update JVM target and toolchain to version 17

pull/2194/head
Alinson S. Xavier 3 months ago
parent 97b98a872d
commit 5006f5128b

@ -36,7 +36,7 @@ Updating gradle might fix this, so try again in the future to remove this and ru
If this doesn't produce any warning, try to remove it. If this doesn't produce any warning, try to remove it.
*/ */
kotlin { kotlin {
jvmToolchain(11) jvmToolchain(17)
} }
android { android {
@ -79,11 +79,11 @@ android {
compileOptions { compileOptions {
isCoreLibraryDesugaringEnabled = true isCoreLibraryDesugaringEnabled = true
targetCompatibility(JavaVersion.VERSION_11) targetCompatibility(JavaVersion.VERSION_17)
sourceCompatibility(JavaVersion.VERSION_11) sourceCompatibility(JavaVersion.VERSION_17)
} }
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString() kotlinOptions.jvmTarget = JavaVersion.VERSION_17.toString()
buildFeatures.viewBinding = true buildFeatures.viewBinding = true
lint.abortOnError = false lint.abortOnError = false
} }

@ -24,7 +24,7 @@ plugins {
kotlin { kotlin {
jvm().withJava() jvm().withJava()
jvmToolchain(11) jvmToolchain(17)
sourceSets { sourceSets {
val commonMain by getting { val commonMain by getting {

Loading…
Cancel
Save