adam-mcneilly
07/29/2018, 9:32 PMcoreLibsTest
I get this: > Could not target platform: 'Java SE 10' using tool chain: 'JDK 8 (1.8)'.
I set all of the environment variables:
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin
JDK_16=/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
JDK_17=/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin
JDK_18=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin
JDK_9=/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home/bin
Anyone have a hunch at what I might be doing wrong that it's trying to target Java 10?ilya.gorbunov
07/29/2018, 10:00 PM--scan
option, and paste a link to the generated build scan here.adam-mcneilly
07/29/2018, 10:01 PMExecution failed for task ':compiler:util:compileJava'.
adam-mcneilly
07/29/2018, 10:03 PMadam-mcneilly
07/29/2018, 10:07 PM./gradlew clean build
. I get the same error when I ran coreLibsTest
but this time it failed on :tools:binary-compatibility-validator:compileTestJava
ilya.gorbunov
07/29/2018, 10:52 PMorg.gradle.java.home
property overridden in your local gradle.properties
?ilya.gorbunov
07/29/2018, 10:55 PMbin
to the paths. JDK is not only the binaries, so JDK Home is not where the binaries are, but one level upper.adam-mcneilly
07/29/2018, 11:03 PMadam-mcneilly
07/29/2018, 11:05 PM.jdk
so let me try that really quick could be that simple.adam-mcneilly
07/29/2018, 11:10 PMilya.gorbunov
07/29/2018, 11:27 PM/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home
adam-mcneilly
07/29/2018, 11:28 PMadam-mcneilly
07/29/2018, 11:28 PMadam-mcneilly
07/29/2018, 11:40 PMgradle.properties
to point to JDK 8 was fine. Thanks for the help, @ilya.gorbunov