Setting JvmTarget to 21 for quartz to fix build/push issue due to mixed Java versions when using Java 23 locally
This commit is contained in:
+10
-1
@@ -1,3 +1,5 @@
|
|||||||
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.kotlinMultiplatform)
|
alias(libs.plugins.kotlinMultiplatform)
|
||||||
alias(libs.plugins.androidLibrary)
|
alias(libs.plugins.androidLibrary)
|
||||||
@@ -43,13 +45,20 @@ kotlin {
|
|||||||
compilerOptions {
|
compilerOptions {
|
||||||
freeCompilerArgs.add("-Xstring-concat=inline")
|
freeCompilerArgs.add("-Xstring-concat=inline")
|
||||||
}
|
}
|
||||||
jvm()
|
jvm {
|
||||||
|
compilerOptions {
|
||||||
|
jvmTarget.set(JvmTarget.JVM_21)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Target declarations - add or remove as needed below. These define
|
// Target declarations - add or remove as needed below. These define
|
||||||
// which platforms this KMP module supports.
|
// which platforms this KMP module supports.
|
||||||
// See: https://kotlinlang.org/docs/multiplatform-discover-project.html#targets
|
// See: https://kotlinlang.org/docs/multiplatform-discover-project.html#targets
|
||||||
androidTarget {
|
androidTarget {
|
||||||
publishLibraryVariants("release")
|
publishLibraryVariants("release")
|
||||||
|
compilerOptions {
|
||||||
|
jvmTarget.set(JvmTarget.JVM_21)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// For iOS targets, this is also where you should
|
// For iOS targets, this is also where you should
|
||||||
|
|||||||
Reference in New Issue
Block a user