Gradle-License-Report icon indicating copy to clipboard operation
Gradle-License-Report copied to clipboard

Gradle 7 / version 2.1 migration issue with `importerName` on `ReportTask`

Open wickstopher opened this issue 2 years ago • 1 comments

I'm trying to migrate my Android codebase over to Gradle 7, and I'm having the following problem when running the plugin (verison 2.1):

A problem was found with the configuration of task ':app:generateLicenseReport' (type 'ReportTask').
  - In plugin 'com.github.jk1.dependency-license-report' type 'com.github.jk1.license.task.ReportTask' property 'config.cache.$1.importerName' is missing an input or output annotation.

the configuration is as follows:

licenseReport {
    outputDir = "$projectDir/build/licenses"
    filters = [new ExcludeTransitiveDependenciesFilter()]
    renderers = [new LicenseAndNameJsonReportRenderer('license_report.json')] // Custom ReportRenderer implementation
    excludes = ['org.tensorflow:tensorflow-lite']
    importers = [new XmlReportImporter('Extra Dependencies', new File(projectDir, "../license_import.xml"))]
}

I'm having some difficulty in determining whether or not this is a configuration issue on my end. This configuration works fine on earlier versions of gradle. Thanks for any input! If you can point me in the right direction, I'd be happy to submit a PR; I've forked and attempted a few things locally but to no apparent avail.

wickstopher avatar Jul 18 '22 22:07 wickstopher