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

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.

val myElement by myContainer.creating { myProperty = 42 }