title: SBT task dependsOn
body: <p>Since SBT 0.13.13 this is deprecated (<code>&lt;&lt;=</code> is deprecated):</p>
  
  <pre class="lang-scala prettyprint-override"><code>compile in Compile &lt;&lt;= (compile in Compile).dependsOn(apiDoc)
  </code></pre>
  
  <p>So the only way to do I found is this:</p>
  
  <pre class="lang-scala prettyprint-override"><code>compile in Compile := {
    apiDoc.value
    (compile in Compile).value
  }
  </code></pre>
  
  <p>But now I have a warning about a useless expression <code>apiDoc.value</code>.
  But this is not useless!<br>
  I can't find any documentation about what is the new way to do.</p>