title: creating parent task to call subproject tasks
body: <p>I want to create a task in the parent <strong>build.gradle</strong> file that calls tasks from the subproject in this specific order.
  This is my task definition in the <strong>build.gradle</strong> file and the tasks for each subproject are defined and working.  I can call each individual task from the command line.
  I want to be able to call this parent task from the command line and it do all of the subproject tasks in the order defined.</p>
  
  <pre><code>apply plugin: 'java'
  
  task buildAll (dependsOn: 
      [ project(':loadRemote').remoteLoadCleanCompileStage,
        project(':load').remoteLoadCleanCompileStage,
        project(':loadRemote').remoteLoadPackage,
        project(':load').loadPackage
      ])
  </code></pre>
  
  <p>When I run this task from the command line I get the error:</p>
  
  <blockquote>
    <p>Could not get unknown property 'remoteLoadCleanCompileStage' for
    project ':loadRemote' of type org.gradle.api.Project.</p>
  </blockquote>
  
  <p>Is this not allowed in gradle?</p>