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

ExcludeTransitiveDependenciesFilter causes generateLicenseReport to fail

Open bitPogo opened this issue 9 months ago • 0 comments

First of all thanks for the plugin!

I am currently facing following error:

> Task :generateLicenseReport FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':generateLicenseReport'.
> Configuration with name '_internal-unified-test-platform-android-device-provider-ddmlib' not found.

Which is caused by the ExcludeTransitiveDependenciesFilter. The project consists of 3 example modules right now - one java, one android library and one android application module.

The configuration of the plugin is the following:

extensions.getByType(LicenseReportExtension::class.java).apply {
    allowedLicensesFile = File(project.projectDir, "gradle/license/allowed.json")
    filters = arrayOf(
        ExcludeTransitiveDependenciesFilter()
    )
    configurations = LicenseReportExtension.ALL
}

It will try to make reproducer these days but wanted to report it beforehand.

bitPogo avatar May 07 '24 15:05 bitPogo