# invoke

operator fun String.invoke(configuration: Task.() -> Unit): TaskProvider<Task>(source)
operator fun <U : Task> String.invoke(type: KClass<U>, configuration: U.() -> Unit): TaskProvider<U>(source)

Configures a task by name, without triggering its creation or configuration, failing if there is no such task.

#### See also

TaskContainer.named
TaskProvider.configure

operator fun <U : Task> String.invoke(type: KClass<U>): TaskProvider<U>(source)

Locates a task by name and type, without triggering its creation or configuration, failing if there is no such task.

#### See also

TaskContainer.named