charangowdamd-cmd opened a new pull request, #13960:
URL: https://github.com/apache/maven/pull/13960

   Closes #13857
   
   ### Summary
   Raises the default `maven.compiler.release` in 
`AbstractMavenIntegrationTestCase.newVerifier()` from `8` to `17`, and removes 
redundant `maven.compiler.source` and `maven.compiler.target` properties.
   
   ### Background
   Maven 4 requires JDK 17 (`javaVersion=17` in the root POM) and so do all 
Maven 4 plugins. The previous default of `8` required boilerplate per-verifier 
overrides in tests building modern Java features or plugins. Setting 
`release=17` matches Maven 4's baseline and eliminates source/target/bootstrap 
classpath cross-compilation pitfalls.
   
   Individual integration tests that test older bytecode levels (such as JDK 8 
in `mng-6118`, `mng-6981`, etc.) specify their own properties in their test 
POMs and are unaffected.
   
   ### Verification
   - Added `testDefaultCompilerRelease()` in 
`AbstractMavenIntegrationTestCaseNIO2Test` verifying that `newVerifier()` sets 
`maven.compiler.release=17` and has no `source`/`target` set.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to