mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Update JVM target and toolchain to version 17
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user