creating

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

val myElement by myContainer.creating { myProperty = 42 }


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


fun <T : Any, U : T> PolymorphicDomainObjectContainer<T>.creating(type: KClass<U>, configuration: U.() -> Unit): <Error class: unknown class>(source)

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


Provides a property delegate that creates elements of the given type expressed as a java.lang.Class with the given configuration.


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


Deprecated

Use registering instead. See https://docs.gradle.org/current/userguide/task_configuration_avoidance.html for more information.

Replace with

registering(configuration)

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

val someTask by tasks.creating { onlyIf = true }


Deprecated

Use registering instead. See https://docs.gradle.org/current/userguide/task_configuration_avoidance.html for more information.

Replace with

registering(type)

Provides a property delegate that creates tasks of the given type.


fun <U : Task> TaskContainer.creating(type: KClass<U>, configuration: U.() -> Unit): <Error class: unknown class>(source)

Deprecated

Use registering instead. See https://docs.gradle.org/current/userguide/task_configuration_avoidance.html for more information.

Replace with

registering(type, configuration)

Provides a property delegate that creates tasks of the given type with the given configuration.


Deprecated

Use registering instead. See https://docs.gradle.org/current/userguide/task_configuration_avoidance.html for more information.

Replace with

registering(type, configuration)

Provides a property delegate that creates tasks of the given type expressed as a java.lang.Class with the given configuration.


Deprecated

Use registering instead. See https://docs.gradle.org/current/userguide/task_configuration_avoidance.html for more information.

Replace with

registering

Provides a property delegate that creates tasks of the default type.