this official doc describes how to define a task in gradle,E.g:
task helloTask {
println 'Hello World!'
}
it seems this code actually means a method call, which is Task task(String name, Closure configureClosure)
.
Since this is a method call, helloTask
shoule be parameter name
, which is String
type. So where is the ‘’
or ""
?
ps.
BTW, the parentheses looks different with standard groovy method call.