gradle-baseline
gradle-baseline copied to clipboard
FR: help people spot *almost* unused dependencies
What happened?
We recently found someone importing all of hadoop just for the Time class.
What did you want to happen?
It would great if we could somehow warn people that they're taking a huge dependency just for one class.
This issue has been automatically marked as stale because it has not been touched in the last 60 days. Please comment if you'd like to keep it open, otherwise it'll be closed in 7 days time.
This can be done if switch to using the jdeps dependency analyzer (https://docs.oracle.com/javase/9/tools/jdeps.htm#JSWOR690). Can also use the --apionly option with that analyzer to be able to report what dependencies should be api vs implementation.