FYI, you compile geode against one version of java and test using a different version of java with the testJVM flag. For example, this would compile with the default JDK on your machine and run tests with java 9.
./gradlew -PtestJVM=/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home/ test -Dan