# invoke

operator fun String.invoke(configuration: ERROR CLASS: Symbol not found for Task.() -> Unit): ERROR CLASS: Symbol not found for TaskProvider<ERROR CLASS: Symbol not found for Task>(source)
operator fun <U : ERROR CLASS: Symbol not found for Task> String.invoke(type: KClass<U>, configuration: U.() -> Unit): ERROR CLASS: Symbol not found for 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 : ERROR CLASS: Symbol not found for Task> String.invoke(type: KClass<U>): ERROR CLASS: Symbol not found for 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