Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Gradle's configuration cache #368

Open
sergeys-opera opened this issue Oct 17, 2023 · 3 comments
Open

Add support for Gradle's configuration cache #368

sergeys-opera opened this issue Oct 17, 2023 · 3 comments

Comments

@sergeys-opera
Copy link
Contributor

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.

@FelipeRRM
Copy link

Yeah, would be great to be able to enable the configuration cache.
Just wondering what are the necessary steps to modify the plugin to support it.
I could potentially fork it and do it myself since it's been a few months already without updates.

@jaredsburrows
Copy link
Owner

I was working on this here - #217

@FelipeRRM
Copy link

I was working on this here - #217

Oh, interesting. And what's left to do? And did you decide to stop working on it?
Sorry for the questions, not experienced at all with developing Gradle plugin but trying to research how to fix this myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants