mbonnin10/04/2023, 5:12 PM
? As long as I set Kotlin
?), is there any reason 2 different JDKs would produce different class files?
Vampire10/05/2023, 9:40 AM
which used to return
and now returns
mbonnin10/05/2023, 9:41 AM
or allow me to configure it
Vampire10/05/2023, 10:12 AM
Isn't that the whole point of --release ?
I'd expect the Kotlin compiler to either set --release according to jvmTarget or allow me to configure it
If I look at issues like https://github.com/Kotlin/kotlinx.serialization/pull/2350, I'd say it does not.
Alexander.Likhachev10/05/2023, 11:34 AM
, choose the right Java stdlib, configure publishing attributes, etc. It doesn’t cause the Kotlin compiler to be executed on the old JDK, but configures the compilation to run against that JDK. Manual configuration of
is kinda a low-level configuration key, similar to Java’s
. The Kotlin compiler has the argument
that serves the same needs as
of the Java compiler, however it’s not yet stabilized
mbonnin10/05/2023, 11:38 AM