public boolean isJava11Compatible() {
    return javaSpecVersionNumber.getMajor() >= 11;
  }
Tells whether the Java version is compatible with Java 11.

@since 1.2
@return whether the Java version is compatible with Java 11
spock-core/src/main/java/spock/util/environment/Jvm.java