Reputation: 10662
Can you explain why those two task definitions in Gradle are equivalent?
task(type: Copy, 'myTask')
And
task myTask(type: Copy)
Is it some Groovy magic syntax thingy that I'm not familiar with, or actually a Gradle preprocessing?
Upvotes: 1
Views: 48
Reputation: 813
Gradle seems to use build script transformers, which are executed during the buildscript compilation phase.
Here's the transformer you're looking for.
Here is a list of transformations.
Upvotes: 1