Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
maven-dependency-analyzer-1.6
-
None
Description
maven-dependency-analyzer doesn't seem to pick up on method reference usages. When using the maven-dependency-plugin, if the only usage of a dependency is via a method reference, this causes erroneous unused dependency errors that fail our build.
I updated the maven-dependency-analyzer tests to fail and pushed it to our fork:
https://github.com/HubSpot/maven-shared/commit/d5ffacb808fba01837c644f2045a79eab50fecbf
Changing from a method reference to a lambda or anonymous class makes the test pass again.
Attachments
Issue Links
- blocks
-
MDEP-471 Java 8 Method references are not detected
- Closed