Last active
August 31, 2015 21:38
-
-
Save xcv58/fa7b6bd0f2eab97ef8c0 to your computer and use it in GitHub Desktop.
dependsOn and overwrite conflict
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| task a << { | |
| println 'task a' | |
| } | |
| task b(dependsOn: {a}) << { // works | |
| // task b(dependsOn: 'a') << { // works | |
| // task b(dependsOn: [a]) << { // doesn't work | |
| // task b(dependsOn: a) << { // doesn't work | |
| // task b << { | |
| println 'task b' | |
| } | |
| // b.dependsOn a // doesn't work | |
| // b.dependsOn 'a' // works | |
| // b.dependsOn {a} // works | |
| task a(overwrite: true) << { | |
| println 'overwrite task a' | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment