Just read in the userguide the new section on Task Ordering:
http://www.gradle.org/docs/nightly/userguide/more_about_tasks.html#sec:ordering_tasks

We describe as a use case for mustRunAfter:

Specify that unit tests should always run before integration tests for
> faster feedback, but still allow integration tests to be run without unit
> tests.


This is a use case for a future shouldRunAfter relationship. Using
mustRunAfter here can lead to trouble as it can easily introduce a cyclic
violation for no good reason. We should point this out in the user's guide
that mustRunAfter is a (often very good) work around for this use case but
not the final solution.

What is the plan for introducing shouldRunAfter? Although I agree that the
mustRunAfter is more important than shouldRunAfter. But I don't think that
shouldRunAfter isan exotic use case. There are many feedback accelleration
scenarios where you want to have that. Obviously the Ant import would be
another grateful consumer.

I'm very excited about the task ordering functionality.

Hans

--
Hans Dockter
Founder, Gradle
http://www.gradle.org, http://twitter.com/gradleware
CEO, Gradleware - Gradle Training, Support, Consulting
http://www.gradleware.com

Join us at the Gradle Summit 2013, June 13th and 14th in Santa Clara, CA:
http://www.gradlesummit.com

Reply via email to