Can you ask on their forums or mailing lists on the best way to access that information?  There must be a way because they certainly have access to the transitive dependencies that are found in the pom files.  Internally, Gradle is definitely parsing and reading the pom file.

From: Alexander Bezrodniy [mailto:notifications@github.com]
Sent: Thursday, October 10, 2013 10:46 AM
To: contentanalyst/license-gradle-plugin
Cc: Valdis Rigdon
Subject: Re: [license-gradle-plugin] CAAT-1793 ticket. Implementing download licenses task. (#1)


In src/main/groovy/nl/javadude/gradle/plugins/license/DownloadLicenses.groovy:

> +

> +        if (isReportByDependency()) {

> +            def xml = getMarkupBuilder(fileName4DependencyToLicense)

> +            generateXMLReport4DependencyToLicense(xml, dependencyToLicenseMap)

> +        }

> +

> +        // TODO create mapping for known dependencies to group the same licenses

> +        if (isReportByLicenseType()) {

> +            def xml = getMarkupBuilder(fileName4LicenseToDependencies)

> +            def inverseMap = Multimaps.invertFrom(Multimaps.forMap(dependencyToLicenseMap),

> +                    ArrayListMultimap.create())

> +            generateXMLReport4LicenseToDependency(xml, inverseMap.asMap())

> +        }

> +    }

> +

> +    private String searchLicenseInRepo(URI repoUrl, String group, String name, String version) {

Yes, they are in gradle caches, but gradle doesn't provide any direct access to it for now.
Gradle gives access to jar files, using them we can find pom files using relative path, but in this case we will rely on gradle internals that can be unstable with version update etc.

—
Reply to this email directly or view it on GitHub<https://github.com/contentanalyst/license-gradle-plugin/pull/1/files#r6888667>.