Apologies if this has already been asked; how would I go about nesting NamedDomainObjectContainer objects? I use extensions for the configuration of a plugin that I’m writing, and part of that configuration is a collection of elements where in turn, each element may contain another collection.
I configure the extension and collection of ‘elementA’ by stating:
project.extension.extensions.collectionA = project.container(ElementA)
But how can I define a NamedDomainObjectContainer for ‘collecteionB’ within each element in ‘collectionA’?