Slackbot
09/14/2023, 10:46 PMVampire
09/14/2023, 11:57 PMKelvin Chung
09/15/2023, 4:17 PMVampire
09/15/2023, 4:22 PMmatching then?Kelvin Chung
09/15/2023, 4:24 PMmatching() states that it would force object creation, defeating the purpose of registering, where there would exist a distinction between creating and registering. If there isn't a distinction, then yes, maching() would suffice.Vampire
09/15/2023, 4:24 PMmatching()Vampire
09/15/2023, 4:25 PMtasks.matching { it.whateverNotJustName == bla }.configureEach { ... } it is ok. Even using the actual task properties does not disturb task configuration avoidance. The condition will only be checked for the tasks created anyways.Vampire
09/15/2023, 4:26 PMdependsOn(tasks.matching { it.name == "foo" }) or any other action that iterates of the result of matching then it would be bad, as that would cause each and every task to be realized to check the conditionKelvin Chung
09/15/2023, 4:27 PMmatching() as being completely useless.Kelvin Chung
09/15/2023, 4:29 PMdependsOn(tasks.matching()), what would be a suitable alternative? Trying to extricate the names from a filtered TaskCollection and obtaining "fresh" providers from the unfiltered one?Vampire
09/15/2023, 4:45 PMdependsOn("myTask") of course if you know the full name.