# invoke

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

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>

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

#### See also

TaskContainer.named