Is there a way inside gradle to have a subproject ...
# gradle
b
Is there a way inside gradle to have a subproject use java11 and another one java8?
o
yes, just set the
sourceCompatibility
and the
targetCompatibility
unless you mean different boot classpaths, which is still possible but much more difficult
gradle will fork a new JVM if it needs to do so for any compilation requirements
d
b
thx
d
Java 9 and later have built-in cross compile support that we don't yet configure, and without specific support in the Kotlin plugin/compiler won't work (https://stackoverflow.com/a/43103038)
It needs a
jdkHome