Hi! `KotlinJvmOptions.jvmTarget` is `null` by defa...
# compiler
s
Hi!
KotlinJvmOptions.jvmTarget
is
null
by default, but what does that mean? Does that mean that the Kotlin compiler will target the max. bytecode level the JVM used for the build supports?
m
Sounds like a #gradle question? But now that you're here, I'd say this is using whatever the default in your Kotlin Gradle Plugin is
As of 1.7.21, this is 1.8 IIRC
j
If it hasn’t changed, if you don’t set a value it will use the java version you are using to compile.
m
Ah yea, good call
j
but now everything is being moved to the toolchain APIs so I don’t know the real state of it, indeed since some 1.7.XX version you need to change it via java accessor too if you are not using the toolchain APIs