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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -