Tom Koptel
08/11/2023, 3:51 PMT
object for NamedDomainObjectContainer
. Imagine having a task and then using its output to create new object for the NamedDomainObjectContainer
?
// pseudo code
val container: NamedDomainObjectContainer<SomeType>
val myTask: TaskProvider<MyTask>
container.register("name", myTask.flatMap { Mapper.map(it.outFile) as SomeType })
I am working with API that locks everything at execution stage and requires object added to the container on configuration time which is unfortunate as the values derived from API.