Tianyu Zhu
11/29/2022, 9:59 PMjava.targetCompatibility = JavaVersion.1_8
Is there a similar way I can set the jvmTarget
for my Kotlin code?Chris Lee
11/29/2022, 10:00 PMkotlin {
jvmTarget.value = JavaVersion.1_8
}
Tianyu Zhu
11/30/2022, 12:55 AMjvmTarget
field...Chris Lee
11/30/2022, 12:58 AMtasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}
ephemient
11/30/2022, 7:39 AMkotlin {
target {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
you will only have to change target
to targets.all
when moving to Kotlin Multiplatformtapchicoma
11/30/2022, 11:00 AMtapchicoma
11/30/2022, 11:00 AMTianyu Zhu
12/01/2022, 3:24 PMkotlin.jvmToolchain(8)
Is that right?tapchicoma
12/01/2022, 3:25 PMtapchicoma
12/01/2022, 3:26 PM