robnik
05/22/2019, 4:48 PMtasks["foo"]
, tasks.named("foo").get()
, tasks.getByName("foo")
gildor
05/22/2019, 11:28 PMget
operator syntax not only eager, but also cannot return typed task, there are typed version for named and getByNameStephan Schroeder
05/23/2019, 9:26 AMgildor
05/23/2019, 9:27 AMI think one of the main reason is that Gradle was written in GroovyBut Gradle is not written in Groovy, it written mostly in Java (at least core part), DSL on Groovy
Stephan Schroeder
05/23/2019, 9:29 AMgildor
05/23/2019, 9:31 AMgildor
05/23/2019, 9:31 AMgildor
05/23/2019, 9:32 AMProvider<X> is pretty much X, so the “.get()” disappearsWhich is also bad to use, because it cause eager configuration and not needed almost never and shouldn’t be used in 98% cases, so in case of task it’s actually good, that there is sign of eager configuration like .get()
Stephan Schroeder
05/23/2019, 9:36 AM