public boolean isJava11() {
    return "11".equals(javaSpecVersion);
  }
Tells whether the Java version is 11.

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