https://kotlinlang.org logo
Title
b

bjonnh

02/25/2019, 8:45 PM
Is there a way inside gradle to have a subproject use java11 and another one java8?
o

octylFractal

02/25/2019, 9:01 PM
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

danny

02/25/2019, 9:14 PM
b

bjonnh

02/25/2019, 9:14 PM
thx
d

danny

02/25/2019, 9:14 PM
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