w3lld1 opened a new pull request, #990:
URL: https://github.com/apache/maven-enforcer/pull/990

   Following this checklist to help us incorporate your contribution quickly 
and easily:
   
   - [x] This pull request addresses one issue without unrelated changes.
   - [x] The description explains what the pull request does, how, and why.
   - [x] The commit has a meaningful subject line and body.
   - [x] Regression tests cover the behavioral change.
   - [x] `mvn verify` passed as part of the command below.
   - [x] Integration tests passed with `mvn -Prun-its verify`.
   
   ## Summary
   
   `ArtifactMatcher.match()` identifies dependencies that are excluded and not 
restored by an include override. `enforceBytecodeVersion` previously kept those 
matches for analysis, reversing the intended filtering behavior.
   
   This change negates that matcher result so excluded dependencies are skipped 
while explicit includes still override broad exclusions. It adds regression 
coverage for both excludes-only configuration and include overrides.
   
   ## Verification
   
   - `mvn -Prun-its verify` — passed (151 plugin integration tests and 1 
extension integration test; all reactor modules successful)
   - `mvn -pl enforcer-rules -am -Dtest=EnforceBytecodeVersionTest 
-Dsurefire.failIfNoSpecifiedTests=false test` — passed (28 tests)
   - `git diff --check` — passed
   
   Fixes #985
   
   - [x] I hereby declare this contribution to be licenced under the [Apache 
License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
   - [ ] In any other case, please file an [Apache Individual Contributor 
License Agreement](https://www.apache.org/licenses/icla.pdf).
   


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