Skip to content

Commit

Permalink
gradle: update JVM target to 17
Browse files Browse the repository at this point in the history
  • Loading branch information
LeHaine committed Mar 23, 2024
1 parent 69598e9 commit 135d970
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ kotlin {
}
jvm {
compilations.all {
kotlinOptions.jvmTarget = "11"
kotlinOptions.jvmTarget = "17"
}
testRuns["test"].executionTask.configure {
useJUnit()
Expand Down Expand Up @@ -153,7 +153,7 @@ android {
targetSdk = (findProperty("android.targetSdk") as String).toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
8 changes: 5 additions & 3 deletions samples/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import org.jetbrains.kotlin.gradle.plugin.KotlinJsCompilerType
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

plugins {
alias(libs.plugins.android.application)
Expand Down Expand Up @@ -48,7 +49,7 @@ kotlin {
}
}
compilations.all {
kotlinOptions.jvmTarget = "11"
kotlinOptions.jvmTarget = "17"
}
testRuns["test"].executionTask.configure {
useJUnit()
Expand All @@ -74,6 +75,7 @@ kotlin {
}
}

@OptIn(ExperimentalWasmDsl::class)
wasmJs {
binaries.executable()
browser {
Expand Down Expand Up @@ -141,7 +143,7 @@ android {
targetSdk = (findProperty("android.targetSdk") as String).toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}

0 comments on commit 135d970

Please sign in to comment.