Get all requested versions

Is there a convenient way to get all of the versions requested by dependencies?

My use case is to warn users when certian versions were requested. For example Guava, one transitive dependency depends on v9 and another depends on v18 there is a good chance that an API would have broken but won’t be found until run/test time. I would like to be able to warn the user that they run into this and tell them how to fix it.

I can add a resolutionStrategy that logs all the requested versions in a set, but that would get messy over time. Is there a nice way to access this information using a public api?