I'm completely new to both gradle and groovy and I'm having trouble to find information about what the below actually is in the groovy language
task myTask(dependsOn: 'compile') << {
println 'I am not affected'
}
AFAIK the {...}
part is a closure which seems to be passed to whatever is defined before <<
.
Is task myTask()
a call to a constructor?
And what is the thing with the colon that looks like a parameter?
What does <<
do? Is it an operator that was overloaded by gradle or is it standard groovy?