The asdf-dependency-grovel uses an extended *macroexpand-hook* to find out dependency information. This seems to work better than implementation-provided xref facilities (at least as long as there are no "uses at compile time" queries in xrefs (-:)
There is a more modern and featureful (and better-debugged) version of adg that's part of the xcvb project, at https://gitlab.common-lisp.net/xcvb/asdf-dependency-grovel
ASDF-Extension