Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 1.19 KB

accessing-some-properties-is-not-possible-with-cc.md

File metadata and controls

12 lines (7 loc) · 1.19 KB

Accessing start parameters in Gradle plugin is impossible when using configuration cache

Currently, it's not possible to get up to date org.gradle.StartParameter in a Gradle plugin that uses configuration cache. The reason is that changing starting parameters, like max-workers or configure-on-demand is not invalidating configuration cache, so the parameters won't be updated in the runtime of the plugin.

The exception is taskNames as configuration cache is generated per requested tasks, so calling a diffrent set of tasks will either invalidate cache or cause Gradle to use configuration cache for these task (and return expected taskNames).

For this reason I've removed some parameters from Automattic's measure-builds plugin in Automattic/measure-builds-gradle-plugin#35. It's better for us to reduce build times, than to measure not crucial parameters.

This problem exsists in other repositories as well, e.g. cdsap/Talaiot#390