How do I get a List of all Licences from depending Maven-POMs?

I’m browsing Gradle Documentation for some time. Usually this is the place i find answers, but this time no luck. I’v several Java-Projects managed by Gradle with many dependencies to Artifacts in Maven-Repositories. Some of them carry License-Information in t hair pom.xml. I try to assemble a List of these Licences.

Is this even possible?