For example:
tasks.create('a')
tasks.create('b').dependsOn('a')
tasks.create('c')
tasks.create('d').mustRunAfter('c')
dependsOn
– sets task dependencies. Executingb
here would require thata
be executed first.mustRunAfter
– sets task ordering. Executingd
does not requirec
. But, when bothc
andd
are included,c
will execute befored
.