Jeppe Nejsum Madsen wrote:
Adam Murdoch <[email protected]> writes:
[...]
There's a few simpler options you have:
You could add the libs task back in:
task libs(dependsOn: assemble)
task bundle(dependsOn: [clean, libs]) << { ... }
Or you could depend on the same things as assemble:
task bundle(dependsOn: [clean, assemble.taskDependencies]) << { ... }
Thanks
You shouldn't need these workarounds in 0.9. The task dependency
auto-wiring will know to run clean, which destroys the build dir,
before any tasks which create files in the build dir, such as
assemble.
Nice, sounds like the right approach. Will this be something magic in
the clean task or a general feature, useful for user defined tasks as
well?
A general feature, if we can manage it.
Adam