Tightened up the collection api semantics, and renamed some internal classes.An important change here is the formalisation of the concept of a “NamedDomainObjectContainer” as a specialised version of “NamedDomainObjectSet” that adds the additional behaviour such as rules and auto creation. All of these functions existed previously, but they were not encapsulated into the concept of a “container”.
The add(String[, Closure]) methods on AutoCreateDomainObjectContainer have been renamed to “create”.This is necessary for an upcoming change were DomainObjectCollections become actual Collection implementations. The existing specialisations of AutoCreateDomainObjectContainer (e.g. SourceSetContainer) have maintained the add() methods though, for backwards compatibility.