api / org.gradle.kotlin.dsl / org.gradle.api.NamedDomainObjectContainer

Extensions for org.gradle.api.NamedDomainObjectContainer

creating

val <T : Any> NamedDomainObjectContainer<T>.creating: NamedDomainObjectContainerDelegateProvider<T>

Provides a property delegate that creates elements of the default collection type.

fun <T : Any> NamedDomainObjectContainer<T>.creating(configuration: T.() -> Unit): NamedDomainObjectContainerDelegateProvider<T>

Provides a property delegate that creates elements of the default collection type with the given configuration.

getting

fun <T : Any, U : T> NamedDomainObjectContainer<T>.getting(type: KClass<U>, configuration: U.() -> Unit): PolymorphicDomainObjectContainerGettingDelegateProvider<T, U>

Provides a property delegate that gets elements of the given type and applies the given configuration.

fun <T : Any, U : T> NamedDomainObjectContainer<T>.getting(type: KClass<U>): PolymorphicDomainObjectContainerGettingDelegate<T, U>

Provides a property delegate that gets elements of the given type.