Collecting project's dependency constraints

Hello,

is there a way to collect all the dependency constraints including those that come from a (enforced) platform for a given project? What I am looking for is an equivalent of collecting Maven’s managed dependencies for a project. In Maven you would resolve the artifact descriptor that would provide the effective set of the artifact’s dependencies plus all the managed dependencies. Is there a way to do this in a Gradle plugin?

Thanks.