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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -