gnodet opened a new pull request, #13024:
URL: https://github.com/apache/maven/pull/13024

   Backport of #12994 to `maven-4.0.x`.
   
   Cherry-pick of 5caa2a04af from master.
   
   ## Summary
   
   Adds JDK compatibility checking to `PluginUpgradeStrategy` so that plugin 
upgrades requiring a higher JDK than the project targets are skipped rather 
than blindly applied. Prevents `UnsupportedClassVersionError` (e.g., 
checkstyle-plugin 3.6.0 → Checkstyle 10.x requires JDK 21).
   
   ## Changes
   
   - Adds `minJdk` field to `PluginUpgrade` record (defaults to 0 = no 
restriction)
   - Detects project JDK from `maven.compiler.release`, `.source`, `.target`, 
and compiler plugin config
   - Guards both direct and effective-model upgrade paths
   - Registers `maven-checkstyle-plugin` 3.6.0 with `minJdk=21`
   - 20 new tests for JDK detection and compatibility skip logic


-- 
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