Creates a new Task using the DSL builder.
Creates a new instance of a Task using the provided Java-friendly Consumer.
Creates a new instance of a Task using the provided configuration block.