Top-level DSL function for creating Task.
A new Task instance.
The lambda to configure the task.
Java-friendly top-level DSL function for creating Task.
The consumer to configure the task.