slachiewicz opened a new pull request, #315: URL: https://github.com/apache/maven-dependency-analyzer/pull/315
Fixes #313. When a referenced class exists in several artifacts, a declared artifact that contains it is now credited before any undeclared one, so it is no longer reported unused while the duplicate jar is reported used undeclared. With no declared artifact among them the first one still wins, and if two declared artifacts contain the class only the first is credited. This is complementary to #280, which asks for the raw used classes before any mapping. Verified: `mvn verify` → 138 tests pass, including three new tests for the class-to-artifact mapping. --- 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]
