groovy - Why those two task definition syntaxes equivalent? -


can explain why 2 task definitions in gradle equivalent?

task(type: copy, 'mytask') 

and

task mytask(type: copy) 

is groovy magic syntax thingy i'm not familiar with, or gradle preprocessing?

gradle seems use build script transformers, executed during buildscript compilation phase.

here's transformer you're looking for.

here list of transformations.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -