Hey :) i know there's an option to tell kotlin which bytecode level to produce. Is there anything that also prevents from compiling against jdk stuff from above the specified version? With java, there is the --release flag, which is also nicely supported by gradle 6.6 now. We need to be able to use jdk for example 11, but our application has to run on java 8. Thanks in advance for any hints :)
Thx for your answer. But as i said, i know how to configure bytecode level. That's not the same as the Release flag, because setting the bytecode level does not prevent usage of jdk 11 methods for example.
n
nanodeath
08/13/2020, 8:30 PM
oh...sorry, reading comprehension fail 😞
i
ilya.gorbunov
08/13/2020, 11:39 PM
You can use
jdkHome
parameter to specify the path to the JDK which should be used to resolve JDK stuff.
Set it to the path to JDK 8 and you won't be able to call API that is missing in that JDK.