I have a large Java library but only need a small portion of it. How would I extract one (or more) class(es) that I want to use directly, plus all of its/their dependencies?
(An automated solution would be preferred, but I can also live with something that generates a list of files I need to manually extract).
This is a re-submission of How do I extract a single class plus all its dependencies from a library? from 2011. The answer from 2011 no longer works (at least, not with java 8).