# 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

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

### Deprecated

Use named(String) instead.

#### Replace with

    named(this)

Content copied to clipboard

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

#### See also

TaskContainer.named