runningcode / gradle-doctor

The right prescription for your Gradle build.
http://runningcode.github.io/gradle-doctor
Apache License 2.0
731 stars 47 forks source link

Configuration cache issues with this plugin when benchmarking remote cache #357

Open amitkma opened 1 month ago

amitkma commented 1 month ago

When benchmarking the remote cache with the command ./gradlew :app:assembleDebug -PbenchmarkRemoteCache, we get the following error:

1 problem was found storing the configuration cache.
- Plugin 'com.osacky.doctor': registration of listener on 'Gradle.addBuildListener' is unsupported
  See https://docs.gradle.org/8.8/userguide/configuration_cache.html#config_cache:requirements:build_listeners

See the complete report at file:///Users/workspace/AndroidStudioProjects/dotmystyle/build/reports/configuration-cache/4wx3lu94wexg1r9ckdkiydd4l/20qonk44hz410kf2094n8n8nj/configuration-cache-report.html
> Listener registration 'Gradle.addBuildListener' by build 'dotmystyle' is unsupported.

Any suggestions or configuration changes that can be done to avoid this issue?

Thank you very much :)

runningcode commented 1 month ago

Thanks for reporting. This will need to be reworked. I'm open to PRs. In the meantime, can you disable configuration cache for workflows that use the benchmark?