ctubbsii commented on PR #251:
URL: 
https://github.com/apache/maven-apache-parent/pull/251#issuecomment-2295319659

   > For me
   > 
   > > I don't think it's very important to make the minimal Java version match 
the target version, except in JDK versions earlier than 9,
   > 
   > sounds different. For me the default should always match the target 
version (no matter which JDK you are building with)!
   
   Some plugins require newer Java build versions than the project. I 
frequently find myself in a situation where my project targets 8, but the build 
quality Maven plugins require 11. Also, as I've pointed out in other places, 
JDK 11 actually enforces the JLS for Java 8 more strictly than JDK 8 does. So, 
even if you're targeting 8, you're better off building with 11 using the 
release flag set to 8, if you want a strictly compliant Java 8 application that 
is maximally portable (OpenJDK 8 and Oracle JDK 8 both let some internal APIs 
leak into the compile time classpath that are in violation of the JLS 8 spec).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to