gradle
8.6

# named

abstract fun named(nameFilter: Spec<String>): TaskCollection<T>(source)
abstract fun named(name: String, configurationAction: Action<out Any>): TaskProvider<T>(source)
abstract fun <S : T?> named(name: String, type: Class<S>): TaskProvider<S>(source)
abstract fun <S : T?> named(name: String, type: Class<S>, configurationAction: Action<out Any>): TaskProvider<S>(source)

abstract fun named(name: String): TaskProvider<T>(source)

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

#### Return

A Provider that will return the task when queried. The task may be created and configured at this point, if not already.

#### Parameters

name

The task name

#### Throws

UnknownTaskException

If a task with the given name is not defined.