title: Gradle nested multi-projects with project compile dependencies
body: <p>I have an identical problem to this <a href="https://stackoverflow.com/questions/9013597/gradle-multi-module-project-setup">Gradle Multi-Module Project Setup</a> but I have to use project compile dependencies to build and cannot use the library(jar) dependencies solution that was given as a solution in the above question.</p>
  
  <pre><code>Root
  |__ P1
  |   |_ PP1
  |   |_ PP2
  |
  |__ P2
     |_PP3
     |_PP4
  </code></pre>
  
  <p>PP1, PP2, PP3 and PP4 are sub-projects and each have their own build.gradle files; P1 and P2 also have build.gradle and settings.gradle files. </p>
  
  <p>How can I declare PP1 as a compile dependency in PP3's build.gradle file?</p>
  
  <pre><code>apply plugin: 'java' 
  dependencies {
      compile('P1:PP1') //does not work
      compile group: 'P1', name: 'PP1', version: '0.1' // jar library dependency not an option
  
      compile('{ant_target}')? //follow up question - an ant target as a dependency
  }
  </code></pre>
  
  <p>I'm running Gradle v1.2</p>