For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

domainObjectSet

abstract fun <T> domainObjectSet(elementType: Class<T>): DomainObjectSet<T>(source)

Creates a new DomainObjectSet for managing objects of the specified type.

Return

The domain object set. Never returns null.

Since

5.5

Parameters

elementType

The type of objects for the domain object set to contain.

<T>

The type of objects for the domain object set to contain.