I am sure that you know how to use the IDEA dependency analysis tool to search for dependencies between libraries, and although this may help you a little, of course, is not enough.
The problem and the fact is that there is no way to find unused JARs through static analysis, since you can reference and create any class in any dependency by reflecting / IoC / whatnot these days.
So, the best thing you can “hope for” is a tool that can determine which JARs your code doesn’t explicitly refer to - which is curious what is missing from IDEA as far as I know (but I would really like to see it fixed point!)
Greetings
source share