Slackbot
09/06/2023, 10:06 AMVampire
09/06/2023, 10:28 AM.configureEach is evaluated as soon as an element in the container is realized. Most containers in Gradle are not treated lazily but realized eagerly, as there are usually only few elements anyway and they are often needed all anyway, unlike with tasks.
I wonder why you not simply activate locking on each and every configuration, if you use locking anyway.
But to answer your question, it might make more sense to not have a property in the extension for this, but a function which you give the names as arguments and then do the locking logic in that function.Niels Doucet
09/06/2023, 10:31 AMNiels Doucet
09/06/2023, 10:33 AMVampire
09/06/2023, 10:40 AMconfigurations.configureEach you should not catch detached configurations afair.Niels Doucet
09/06/2023, 10:47 AMVampire
09/06/2023, 11:16 AMNiels Doucet
09/06/2023, 12:01 PMVampire
09/06/2023, 12:09 PM