Slackbot
02/15/2024, 10:53 PMVampire
02/16/2024, 2:51 PMafterEvaluate
has the same problems as always, it introduces ordering problems, timing problems, and race conditions.
What if you do the srcDirs()
in an afterEvaluate
but then setSrcDirs
is done in a different afterEvaluate
registered after your one.
The order setSrcDir
and srcDirs
is executed is simply the order in which you call them, as they are immediately executed.
That's like asking how to control the order of List#clear
and List#addAll
tasks.Javi
02/16/2024, 3:04 PMupdate
to unwanted behaviors...Vampire
02/16/2024, 3:36 PMupdate
then set
also makes the update
gone