wasyl
03/15/2022, 3:42 PMjvm
(not android) target to not allow APIs from java 8, is it possible? There’s jvmTarget
configuration but it relates only to bytecode as far as I see.
Context: the jvm artifact is consumed by an Android app and we’d like to avoid desugaring, so we want to forbid using Java 8 APIs (like java.time
) in the jvmMain
source set.ephemient
03/15/2022, 4:14 PMephemient
03/15/2022, 4:20 PMwasyl
03/15/2022, 4:43 PMMitchell Syer
03/15/2022, 4:56 PMkotlin {
jvm {
compilations {
all {
kotlinOptions.jvmTarget = "1.6"
}
}
}
}
wasyl
03/15/2022, 5:15 PMephemient
03/15/2022, 5:40 PMwasyl
03/15/2022, 5:46 PMtarget != classpathThat’s what I understand,
target
affects bytecode, and I want a different jvm classpath. The issue you linked looks exactly like what I need, thanks a lot! 🙂