title: Gradle custom task which runs multiple tasks
body: <p>I wanna run multiple gradle tasks as one. So instead of </p>
  
  <pre><code>./gradlew clean build publish
  </code></pre>
  
  <p>I want to have a custom task</p>
  
  <pre><code>./gradlew cleanBuildPublish
  </code></pre>
  
  <p>that executes <code>clean</code> <code>build</code> and <code>publish</code> in order.</p>
  
  <p>How's that possible?</p>
  
  <p>This does not work</p>
  
  <pre><code>task cleanBuildPublish {
      dependsOn 'clean'
      dependsOn 'build'
      dependsOn 'publish'
  }
  </code></pre>