Slackbot
10/26/2022, 9:37 PMChris Lee
10/26/2022, 9:38 PMproviders.provider { collectionA.map { a-> … }} would suffice to make this lazy.Zak Taccardi
10/26/2022, 9:40 PMdomainObjectCollectionB
.configureEach { b ->
}
I could run the transform function ((A) -> B) within a .configureEach { } - but I would have to duplicate calling that in multiple places, which is less than idealChris Lee
10/26/2022, 9:41 PMChris Lee
10/26/2022, 9:43 PMcollectionA.whenObjectAdded { // add to collectionB } work?Zak Taccardi
10/26/2022, 9:45 PM// there are more properties, reduced for simplicity
data class MyModule(val gradlePath: String) // equivalent to project path
I have a live DomainObjectCollection<MyModule> that I want to convert to DomainObjectCollection<String> (the project.path) and I need to keep the MyModule type around for other thingsZak Taccardi
10/26/2022, 9:46 PMwould something likeyeah this would probably work, not super clean though but may be my best betwork?collectionA.whenObjectAdded { // add to collectionB }
Chris Lee
10/26/2022, 9:46 PMcollectionA.whenObjectAdded { // add to collectionB } a try.Chris Lee
10/26/2022, 9:47 PMZak Taccardi
10/26/2022, 9:52 PMModules.ALL statically defined global list to each subproject specifying it itself.
so I can move from Modules.ALL: List<MyModule> to modules.all (modules returns a gradle extension, .all is a live DomainObjectCollection<MyModule> that I use .configureEach { } to access)