Skip to content

Add support for Gradle's configuration cache #368

@sergeys-opera

Description

@sergeys-opera

licenseReport task doesn't support Gradle's configuration cache.

This is what I get when I enable the configuration cache for my project:

2015 problems were found storing the configuration cache, 9 of which seem unique.
- Plugin 'com.android.internal.library': execution of task ':ui:licenseProductionReport' caused invocation of 'Task.project' in other task at execution time which is unsupported.
  See https://docs.gradle.org/8.1.1/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Plugin 'com.android.internal.library': execution of task ':ui:licenseReleaseReport' caused invocation of 'Task.project' in other task at execution time which is unsupported.
  See https://docs.gradle.org/8.1.1/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task `:ui:licenseDebugReport` of type `com.jaredsburrows.license.LicenseReportTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.1.1/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
...

Configuration cache significantly improves the build times and it would be nice to get it work with the license plugin.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions