title: use packageReleaseJar in depends on
body: <p>I have a Gradle task that depends on other tasks. For instance:</p>
  
  <pre><code>//Dependent tasks will be executed first before executing requested task
  makeJar.dependsOn(clearJar) 
  </code></pre>
  
  <p>makeJar and clearJar are the task which I defined as follow:</p>
  
  <pre><code>task clearJar(type: Delete) {
      delete 'build/outputs/myProject.jar'
  }
  
  task makeJar(type: Copy) {
      def someString = 'build/intermediates/bundles/release/'
      from(someString)
      into('build/outputs/')
      include('classes.jar')
      rename ('classes.jar', 'myProject.jar')
  }
  </code></pre>
  
  <p>I want to add another dependency to makeJar task. Gradle has a task called  <code>packageReleaseJar</code> which I want to use.</p>
  
  <p>Following script fails:</p>
  
  <pre><code>makeJar.dependsOn(clearJar,packageReleaseJar)
  </code></pre>
  
  <p>Do you know how can I use <code>packageReleaseJar</code> using dependsOn ?</p>