robnik
05/22/2019, 8:39 AMtasks["foo"]
, tasks.named("foo").get()
, tasks.getByName("foo")
. I guess the first is extra in Kotlin, because the language allows the []
syntax for get
, but is there a difference between the second and third?marstran
05/22/2019, 8:41 AMtasks
? Where is named
and getByName
coming from?robnik
05/22/2019, 8:43 AMmarstran
05/22/2019, 8:43 AMrobnik
05/22/2019, 8:43 AMTaskContainer
I think.marstran
05/22/2019, 8:44 AMrobnik
05/22/2019, 8:45 AMnamed
and getByName
are defined in org.gradle...
classes. One returns the task, and the other a "provider". Not sure what the purpose is.marstran
05/22/2019, 8:48 AMrobnik
05/22/2019, 8:52 AMsnowe
05/22/2019, 3:27 PMrobnik
05/22/2019, 4:42 PMNikky
05/24/2019, 8:10 PMtasks.getByName<TaskType>("taskname") {
// configuration here
}