# 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

org.gradle.jvm.toolchain.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)
inline fun <U : T, T : Any> PolymorphicDomainObjectContainer<T>.register(name: String, type: KClass<U>): NamedDomainObjectProvider<U>(source)
inline fun <U : T, T : Any> PolymorphicDomainObjectContainer<T>.register(name: String, type: KClass<U>): NamedDomainObjectProvider<U>(source)

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

#### Since

4.10

#### See also

org.gradle.api.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

org.gradle.api.tasks.TaskContainer.register

inline fun <T : Any> PolymorphicDomainObjectContainer<in T>.register(name: String): NamedDomainObjectProvider<T>(source)

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

#### Since

5.6

#### 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.

#### Since

5.6

#### See also

PolymorphicDomainObjectContainer.register

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

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

#### Since

5.6

#### 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.

#### Since

5.6

#### 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.

#### Since

5.6

#### See also

TaskContainer.register