> I'd agree with this and it'd be great if we can fail to build locally and > encourage devs to use a newer patch version of Java (instead of blaming > developers for not upgrading jdk they use) - I have no good idea at all > though.
This should be simple. In alternative-jdk-support.gradle, check whether jvmCurrent's JvmInstallationMetadata is on JDK 11 major and if so, verify the minor to be at least at a certain bugfix release? You can parse out the minor version using Runtime.Version API [1] from one of these (not sure which one gradle extracts): String getImplementationVersion(); String getRuntimeVersion(); String getJvmVersion(); https://docs.oracle.com/javase/9/docs/api/java/lang/Runtime.Version.html D. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org