title: Gradle task dependsOn does not work
body: <p>I want to setup simple dependency between tasks.</p>
  
  <p>My <code>build.gradle</code></p>
  
  <pre><code>apply plugin: 'java'
  
  sourceCompatibility = 1.8
  version = '1.0'
  
  repositories {
      mavenCentral()
  }
  
  task('Second', dependsOn: 'First') {
      println "Second"
  }
  
  task('First') {
      println "First"
  }
  </code></pre>
  
  <p>As a result I expect <code>First</code> and than <code>Second</code>.
  But I've got:</p>
  
  <pre><code>$ gradle build
  Second
  First
  :compileJava UP-TO-DATE
  :processResources UP-TO-DATE
  :classes UP-TO-DATE
  :jar UP-TO-DATE
  :assemble UP-TO-DATE
  :compileTestJava UP-TO-DATE
  :processTestResources UP-TO-DATE
  :testClasses UP-TO-DATE
  :test UP-TO-DATE
  :check UP-TO-DATE
  :build UP-TO-DATE
  </code></pre>
  
  <p>What am I doing wrong?
  Thanks for help.</p>