… and I also tried adding to each project’s build.gradle this:
compileJava.options.fork = true
compileJava.options.forkOptions.executable = “/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/bin/javac”
But still fails in the same way.
I made these additions because both projects need to be compiled with a JDK8, and I thought that Gradle was maybe using the composite’s JDK11 to compile, which would trigger problems. And indeed I can confirm that running the composite with JDK8 fixes that particular error.
But as stated before other included builds will need JDK11. So the question remains: can I mix Java versions in a composite build?