Skip to content

Commit

Permalink
Fixes errors like `> Inconsistent JVM-target compatibility detected f…
Browse files Browse the repository at this point in the history
…or tasks 'compileJava' (17) and 'compileKotlinJvm' (11).`
  • Loading branch information
soywiz committed Jan 23, 2024
1 parent d9f7f2a commit 5082427
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion zircon.core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ plugins {
id("signing")
}

val javaVersion = JavaVersion.VERSION_11

java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}

kotlin {

jvm {
Expand All @@ -26,7 +33,8 @@ kotlin {
kotlinOptions {
apiVersion = "1.9"
languageVersion = "1.9"
jvmTarget = "15"
jvmTarget = javaVersion.toString()

}
}
}
Expand Down

0 comments on commit 5082427

Please sign in to comment.