Roldan Galan
06/30/2025, 1:41 PMThe build cache configuration of the root build differs from the build cache configuration of the early evaluated ':projectA', ':projectB' included builds. It is recommended to keep them consistent, see here.
That documentations says:
Such included builds will inherit the build cache configuration from the top level build, regardless of whether the included builds define build cache configuration themselves or not. The build cache configuration present for any included build is effectively ignored, in favour of the top level build’s configuration.I have no specific build cache configuration on such included build modules, so I am actually expecting to inherit the build cache config from my root build. If the build cache configuration on the included builds is going to be ignored and inherit whatever is in the root build... what is the purpose of such warning? 🤔 I would understand it if I had some specific build cache config that conflicts with the root. But does it make sense to flag this when there is nothing defined in the included builds? Thanks!
Vampire
06/30/2025, 4:51 PMVampire
06/30/2025, 4:57 PMprojectA
and projectB
plugin builds?
They are evaluate before the settings script executed as they could contribute settings plugins, so they would not inherit the root builds cache configuration due to being "evaluated early".
So in that case, the warning seems to be fully appropriate.Roldan Galan
07/01/2025, 7:15 AMVampire
07/01/2025, 7:46 AMRoldan Galan
07/01/2025, 7:57 AM