Talaiot icon indicating copy to clipboard operation
Talaiot copied to clipboard

`CommandLineWithOutputValue` breaks configuration cache

Open Hiraev opened this issue 5 months ago • 0 comments

I have an empty project with configuration cache enabled. Configuration cache works while Gradle daemon is alive. But when I stop all Gradle daemons and restart task Gradle doesn't reuse configuration cache and prints next message:

Calculating task graph as configuration cache cannot be reused because a build logic input of type 'CommandLineWithOutputValue' has changed.

Simple workaround is just disabling some metrics that uses CommandLineWithOutputValue.

talaiot {
    metrics {
        gitMetrics = false
        processMetrics = false
    }
}

Environment:

  • macOs Sonoma 14.1
  • Gradle 8.5 (same problem with latest Gradle 8.10.1)
  • openjdk-22.0.2
  • Talaiot 2.0.5

Hiraev avatar Sep 22 '24 18:09 Hiraev