PatilShreyas / compose-report-to-html

A utility (Gradle Plugin + CLI) to convert Jetpack Compose compiler metrics and reports to beautified HTML page.
https://patilshreyas.github.io/compose-report-to-html/
MIT License
375 stars 9 forks source link

Task `:app:debugComposeCompilerHtmlReport` of type `dev.shreyaspatil.composeCompilerMetricsGenerator.plugin.task.ComposeCompilerReportGenerateTask`: invocation of 'Task.project' at execution time is unsupported. #90

Closed trOnk12 closed 4 months ago

trOnk12 commented 6 months ago

Unfortunetly I am not able to use the gradle plugin :S Is this tool even maintaned ?

FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache problems found in this build.

1 problem was found storing the configuration cache.
- Task `:app:debugComposeCompilerHtmlReport` of type `dev.shreyaspatil.composeCompilerMetricsGenerator.plugin.task.ComposeCompilerReportGenerateTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.4/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution

See the complete report at file:///Users/n355021/Documents/GitHub/android-poland/build/reports/configuration-cache/4q3ixo9z57h0bsyonfmkm8m9m/4eynj1pbh1z8w28vx3yye1h37/configuration-cache-report.html
> Invocation of 'Task.project' by task ':app:debugComposeCompilerHtmlReport' at execution time is unsupported.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
PatilShreyas commented 6 months ago

It doesn't support configuration cache. Disable it and try again

trOnk12 commented 6 months ago

what exactly does it mean ? Is there a plan to support configuration cache ? Also how do you disable it ?

PatilShreyas commented 6 months ago

You can find it in gradle.properties of your project.

With this kind of API, currently it looks like not possible to support configuration cache

PatilShreyas commented 5 months ago

Any findings here @trOnk12?

PatilShreyas commented 4 months ago

Closing this due to inactivity and seems like a duplicate of #28. Feel free to re-open if there are new findings