title: Gradle keeps getting a "Could not get unknown property for root project" error
body: <p>As someone new to gradle, I'm trying to have my build step depend on a custom task.</p>
  
  <p>My <code>build.gradle</code> contains this code:</p>
  
  <pre><code>repositories {
    jcenter()
  }
  
  apply plugin: 'base'
  
  defaultTasks 'build'
  build.dependsOn compileAll
  
  task compileAll {
    doLast {
      println "hello" 
    }
  }
  </code></pre>
  
  <p>If I remove the <code>build.dependsOn compileAll</code> line, this works fine. I think I'm doing something wrong but I'm not sure what. </p>