Slackbot
04/24/2023, 11:20 PMephemient
04/24/2023, 11:29 PM./gradlew help --configuration-cache
?ebtokyo
04/24/2023, 11:47 PM./gradlew help
seems to work!
The only issue is there is this log once the profiler pass from warm-up to measured builds 🤔
Calculating task graph as configuration cache cannot be reused because system property 'org.gradle.profiler.phase' has changed.
ebtokyo
04/25/2023, 12:00 AMvar property = System.properties['org.gradle.profiler.phase']
). It should be fixed with var property = providers.systemProperty("org.gradle.profiler.phase").getOrNull()
But there’s also this potential bug https://github.com/gradle/gradle/issues/19184 (looks like fixed in 8.1)Anze Sodja
04/25/2023, 8:20 AM./gradlew tasks
is also a good option, since it configures registered tasks.
What is the reason you want to measure configuration phase with the configuration cache? Do you notice that configuration phase when there is a configuration cache hit is slow?Anze Sodja
04/25/2023, 8:42 AMebtokyo
04/25/2023, 8:23 PMwolfs
05/19/2023, 9:28 AM--measure-config-time
command line option that captures the configuration time no matter which task you run. I suggest you run a task you care about, so the loading from CC measurement is more relevant.