title: Chaining two tasks
body: <p>In gradle 1.7, how to go about ensuring a task will always run when another one has run</p>
  
  
  
  <pre class="lang-groovy prettyprint-override"><code>task after_eclipse &lt;&lt; {
     println 'After eclipse'
  }
  </code></pre>
  
  <p>I've failed with</p>
  
  <pre class="lang-groovy prettyprint-override"><code>after_eclipse.dependsOn eclipse
  after_eclipse.mustRunAfter eclipse
  </code></pre>
  
  <p>And I can't use shouldRunAfter because it appeared only in <a href="http://www.gradle.org/docs/1.10/release-notes#shouldrunafter-task-ordering" rel="nofollow">1.10</a></p>