Closed Nimisha94 closed 6 years ago
We could also upgrade the plugin to Java 8 and pass a Consumer<String>
to DependencyManagementAnalyzer
rather than a Log
. Then in the enforcer rule we could pass getLog()::warn
, and in the mojo we could pass getLog()::warn
or getLog()::error
depending on the fail flag
Awesome!
LGTM 🚢
👍
This PR enables logging messages as errors or warnings depending on the fail flag.