thanks for telling me about the deprecation of the...
# gradle
j
thanks for telling me about the deprecation of the left shift operator. Would the extension above makes sense as an ad-hoc replacement? (or what can I improve?) Since description is passed as a parameter of the function and it works only for a simple DefaultTask, that avoids the two commons errors described in https://docs.gradle.org/3.2/release-notes.html#the-left-shift-operator-on-the-task-interface
Copy code
val hello1 = tasks.newDefaultTask(name = "hello1", description = "Prints Hello World") {
    println("Hello World 1")
}
val hello2 = tasks.newDefaultTask(name = "hello2", dependsOn = listOf(":hello1")) {
    println("Hello World 2")
}
val hello3 = tasks.newDefaultTask(name = "hello3", dependsOnTasks = listOf(hello1, hello2)) {
    println("Hello World 3")
}