For example:
tasks.create('a')
tasks.create('b').dependsOn('a')
tasks.create('c')
tasks.create('d').mustRunAfter('c')
dependsOn
- sets task dependencies. Executing b
here would require that a
be executed first.
mustRunAfter
- sets task ordering. Executing d
does not require c
. But, when both c
and d
are included, c
will execute before d
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…