Closed jakoss closed 3 months ago
Fixed and released in v1.0.0-beta02
@PatilShreyas This still seems to be an issue, but another one. On this branch i have configuration cache enabled: https://github.com/jakoss/AndroidArchitectureTemplate/blob/feature/compose-compiler-html-reports/gradle.properties
When i try to run ./gradlew :features:longaction:impl:releaseComposeCompilerHtmlReport
it failes with message
Execution failed for task ':features:longaction:impl:releaseComposeCompilerHtmlReport'.
> Extension of type 'ComposeCompilerReportExtension' does not exist. Currently registered extension types: [ExtraPropertiesExtension]
When i disable configuration cache it works correctly (and the result is awesome)
Okay @jakoss. I guess when configuration cache is enabled, that tasks for generating reports are not maybe registered (because they're only registered after evaluating android build variants). But will definitely look into this. Thanks!
I faced this issue and added --rerun-tasks
argument until this issue solve.
./gradlew :my_module:releaseComposeCompilerHtmlReport --rerun-tasks
I get the following error when I try to run the report task. The report gets generated but the build still fails.
FAILURE: Build failed with an exception.
* What went wrong:
Configuration cache problems found in this build.
1 problem was found reusing the configuration cache.
- Task `:app:FlavorNameComposeCompilerHtmlReport` 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:///path/to/android/app/project/build/reports/configuration-cache/2v3qhuqw2flxdav2m5nx91uwg/1i6e9akx8fv7z68no5ctlacd3/configuration-cache-report.html
> Invocation of 'Task.project' by task ':app:FlavorNameComposeCompilerHtmlReport' at execution time is unsupported.
Think the fix should be removing the reference to project.layout and use some other accessor to get a correct location to get the report folder.
When will it support Gradle configuration cache?
Released in v1.3.1 🚀. Try it out and let me know if it works or not.
When trying to run the plugins tasks with configuration cache enabled i get this error: