slachiewicz opened a new pull request, #316: URL: https://github.com/apache/maven-dependency-analyzer/pull/316
Fixes #314. A declared dependency with no classes of its own (for example `junit-jupiter`) is now credited as used when one of its direct dependencies is used, and those dependencies are no longer reported as used undeclared unless they are declared themselves. Direct dependencies are taken from each resolved artifact's dependency trail, so only the path that survived mediation counts; a classless dependency with no used child is still reported unused. The test-only scope calculation does not use this yet. Verified: `mvn verify` → 139 tests pass, including four new tests. --- To make clear that you license your contribution under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0) check one of the following: - [x] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0) - [x] I hereby declare that I have filed 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]
