register

Defines a new object, which will be created when it is required.

See also

PolymorphicDomainObjectContainer.register

inline fun <T : Any> PolymorphicDomainObjectContainer<in T>.register(name: String, noinline configuration: T.() -> Unit): NamedDomainObjectProvider<T>(source)

Defines and configure a new object, which will be created when it is required.

See also

PolymorphicDomainObjectContainer.register

Defines a new task, which will be created when it is required.

See also

TaskContainer.register

inline fun <T : Task> TaskContainer.register(name: String, noinline configuration: T.() -> Unit): TaskProvider<T>(source)

Defines and configure a new task, which will be created when it is required.

See also

TaskContainer.register

inline fun <T : Task> TaskContainer.register(name: String, vararg arguments: Any): TaskProvider<T>(source)

Defines a new task, which will be created when it is required passing the given arguments to the javax.inject.Inject-annotated constructor.

See also

TaskContainer.register

@Incubating
inline fun <T : JavaToolchainResolver> JavaToolchainResolverRegistry.register(implementationType: KClass<T>)(source)
@Incubating
inline fun <T : JavaToolchainResolver> JavaToolchainResolverRegistry.register(implementationType: KClass<T>)(source)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.jvm.toolchain.JavaToolchainResolverRegistry.register.

Since

7.6

See also

JavaToolchainResolverRegistry.register

inline fun <U : T, T : Any> PolymorphicDomainObjectContainer<T>.register(name: String, type: KClass<U>, configurationAction: Action<in U>): NamedDomainObjectProvider<U>(source)
inline fun <U : T, T : Any> PolymorphicDomainObjectContainer<T>.register(name: String, type: KClass<U>, configurationAction: Action<in U>): NamedDomainObjectProvider<U>(source)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.PolymorphicDomainObjectContainer.register.

Since

4.10

See also

PolymorphicDomainObjectContainer.register

inline fun <T : Task> TaskContainer.register(name: String, type: KClass<T>, configurationAction: Action<in T>): TaskProvider<T>(source)
inline fun <T : Task> TaskContainer.register(name: String, type: KClass<T>, configurationAction: Action<in T>): TaskProvider<T>(source)
inline fun <T : Task> TaskContainer.register(name: String, type: KClass<T>): TaskProvider<T>(source)
inline fun <T : Task> TaskContainer.register(name: String, type: KClass<T>): TaskProvider<T>(source)
inline fun <T : Task> TaskContainer.register(name: String, type: KClass<T>, vararg constructorArgs: Any): TaskProvider<T>(source)
inline fun <T : Task> TaskContainer.register(name: String, type: KClass<T>, vararg constructorArgs: Any): TaskProvider<T>(source)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.tasks.TaskContainer.register.

Since

4.9

See also

TaskContainer.register