inline fun <reified type : Task> Project.task(name: String, noinline configuration: type.() -> Unit): type
Creates a Task with the given name and type, configures it with the given configuration action, and adds it to this project tasks container.
inline fun <reified type : Task> Project.task(name: String): type
Creates a Task with the given name and type, and adds it to this project tasks container.
See Also
fun <T : Task> Project.task(name: String, type: KClass<T>, configuration: T.() -> Unit): T
fun Project.task(name: String, configuration: Task.() -> Unit): DefaultTask
Creates a Task with the given name and DefaultTask type, configures it with the given configuration action, and adds it to this project tasks container.