public boolean isJava8() {
    return "1.8".equals(javaSpecVersion);
  }
Tells whether the Java version is 8.

@return whether the Java version is 8
spock-core/src/main/java/spock/util/environment/Jvm.java