Slackbot
04/08/2022, 5:51 PMCristianGM
04/08/2022, 6:09 PMCristianGM
04/08/2022, 6:11 PMExecutes the given action against all objects in this collection, and any objects subsequently added to this collection.
ephemient
04/08/2022, 6:20 PM.all
is eager - it runs immediately on existing objects, as well as being configuring future objects as soon as they are addedephemient
04/08/2022, 6:21 PM.configureEach
is lazy - it runs when each object is configured, instead of as soon as it is registeredephemient
04/08/2022, 6:21 PMInstead of:DomainObjectCollection.all(org.gradle.api.Action)
Use:DomainObjectCollection.configureEach(org.gradle.api.Action)
CristianGM
04/08/2022, 7:40 PMephemient
04/08/2022, 7:43 PMvoid all(Action<? super T> action)
Executes the given closure against all objects in this collection, and any objects subsequently added to this collection.
void configureEach​(Action<? super T> action)
Configures each element in this collection using the given action, as each element is required.already implies that configureEach is lazier than all
CristianGM
04/08/2022, 7:49 PMEli Graber
04/10/2022, 2:19 AMephemient
04/10/2022, 9:01 AMEli Graber
04/11/2022, 2:15 PM