Skip to content

Commit

Permalink
Attempt to fix Windows CI build.
Browse files Browse the repository at this point in the history
jvmToolchain will attempt to download a matching JVM rather than simply
using the one installed by setup-java and configuring it to use a
different target version.
  • Loading branch information
jpd236 committed Mar 27, 2024
1 parent 7f64528 commit 90c757f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,21 @@ repositories {
mavenCentral()
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlin {
jvm {
withJava()
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}

jvmToolchain(8)

js(IR) {
browser {}
binaries.executable()
Expand Down

0 comments on commit 90c757f

Please sign in to comment.