Skip to content

Commit

Permalink
Compile with Java 17
Browse files Browse the repository at this point in the history
This is done to avoid java mismatch on JVM
  • Loading branch information
alexstyl committed May 3, 2024
1 parent a61eefd commit 3556de8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion menu/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("UnstableApiUsage")

import org.jetbrains.compose.internal.utils.getLocalProperty
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

Expand All @@ -15,14 +17,25 @@ val publishArtifactId = "menu"
val publishVersion = "1.2.0"
val githubUrl = "github.com/composablehorizons/compose-menu"

java {
toolchain {
vendor = JvmVendorSpec.JETBRAINS
languageVersion = JavaLanguageVersion.of(17)
}
}

kotlin {
jvmToolchain {
vendor = JvmVendorSpec.JETBRAINS
languageVersion = JavaLanguageVersion.of(17)
}
explicitApi()

androidTarget {
publishLibraryVariants("release", "debug")
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
}
}
}
Expand Down

0 comments on commit 3556de8

Please sign in to comment.