Daniel Karapishchenko
08/22/2025, 7:40 PMtest for example) without actually running it?Mikhail Lopatkin
08/22/2025, 7:44 PM--dry-run to prime the configuration cache.
The actual cached build may still fail, if tasks are doing something funny in their actions like calling getProject()Mikhail Lopatkin
08/22/2025, 7:44 PMDaniel Karapishchenko
08/22/2025, 7:48 PMtask graph as no cached configuration
and yes the use case is related to caching the configuration-cache for the next-jobMikhail Lopatkin
08/22/2025, 7:56 PM--dry-run works fine. If you're testing in the CI environment, I would check if the cache entry is properly restored. Or you can check locally first.Daniel Karapishchenko
08/22/2025, 7:59 PMMikhail Lopatkin
08/22/2025, 8:06 PM--dry-run being the only difference. Basically, everything that is in the command-line affects the lookup, except for some switches that Gradle core itself processes. For example, --dry--run is consumed by the core, so it isn't part of the configuration cache "key". --test-dry-run is configuring the test task you're specifying in the command-line, so it is part of the "key" and adding/removing it will cause no cached configuration.Daniel Karapishchenko
08/22/2025, 8:08 PM