task

inline fun task(init: TaskBuilder.() -> Unit): Task(source)

Top-level DSL function for creating Task.

Return

A new Task instance.

Parameters

init

The lambda to configure the task.


Java-friendly top-level DSL function for creating Task.

Return

A new Task instance.

Parameters

init

The consumer to configure the task.