Santiago M. Mola
08/31/2024, 4:38 PMVampire
08/31/2024, 4:48 PMtasks.matching is fine, as long as you do configureEach on the resultSantiago M. Mola
08/31/2024, 4:49 PMSantiago M. Mola
08/31/2024, 4:53 PMSantiago M. Mola
09/03/2024, 6:35 AMtasks.matching realizes all tasks itself, I found a workaround for my use case thoughVampire
09/03/2024, 2:22 PMdependsOn or using all on it or forEach. As long as you only call configureEach on it as I said, it is properly avoiding task creationSantiago M. Mola
09/04/2024, 10:23 AMmatching needs to pass Task to a closure to do filtering, and before configuring it, rather than a TaskProvider, by the time you get the Task object, doesn't that mean that the task was created?Santiago M. Mola
09/04/2024, 10:25 AMthat's also what docs say about itrequires all tasks to be created,matching()
Vampire
09/04/2024, 10:35 AMmatching itself does never cause anything to be realized or matched.
But almost and usage of the resulting task collection will, like iterating over the task collection, depending on it, and so on.
The only exception that is safe (that I'm aware right now) is calling configureEach on the result. In that specific case only configuration on anyway due to some other reason realized tasks is done, so only the anyway realized tasks are sent through the matching too.
So yes, realized tasks are given to matching, but as long as combined with configureEach, only the anyway realized tasks are.
If you don't trust my through testing or words, just try it for yourself with some `println`s, it just discard the option you have and don't use it though you could. ;-)Santiago M. Mola
09/04/2024, 10:42 AMSantiago M. Mola
09/04/2024, 10:44 AMSantiago M. Mola
09/04/2024, 10:45 AMVampire
09/04/2024, 10:45 AMmatching, but that does not mean it caused it, just a red herring :-)Santiago M. Mola
09/04/2024, 10:45 AMVampire
09/04/2024, 10:47 AMmatching and the newer named { ... } to finally find that erroneously there is no difference even though it should and thereby also learned about this detail. :-)Santiago M. Mola
09/04/2024, 10:49 AMSantiago M. Mola
09/04/2024, 10:50 AMVampire
09/04/2024, 4:40 PM