title: Gradle subproject not included in classpath
body: <p>We have a set up with 2 project, 1 main and 1 subproject, they are Java projects.
  They are all under the same directory.</p>
  
  <p>Here is how the directory structure looks like :</p>
  
  <pre><code> ./dev
     ./Project_A
       build.gradle
       settings.gradle
     ./Project_B
       build.gradle
  </code></pre>
  
  <p>Project_A includes Project_B.</p>
  
  <p>Project_A settings.gradle looks like : </p>
  
  <pre><code>includeFlat 'Project_B'
  </code></pre>
  
  <p>Project_A build.gradle contains :</p>
  
  <pre><code>compile project(':Project_B')   
  </code></pre>
  
  <p><strong>The issue</strong> 
  Project_A misses the classes from Project_B when compiling from command line (<em>gradlew clean build</em>).
  It looks like Project_B does not belong to Project-A's classpath.</p>
  
  <p>Here is (a part of the ouput) from <em>gradlew clean build</em> ran in Project_A directory (after that it is all "package project_b.x.y missing" and "cannot find symbol" (from Project_B) :</p>
  
  <pre><code>:clean
  :Project_B:clean
  :Project_B:compileJava
  :Project_B:processResources
  :Project_B:classes
  :Project_B:jar UP-TO-DATE
  :compileJava
  ...Starts erroring out here...
  </code></pre>
  
  <p>I would guess it is a classpath issue, but I just cannot figure out how to fix it.</p>
  
  <p>Thanks in advance,
  JM</p>
  
  <p>PS : edited question as I was able to reproduce the issue with a 2 projects build (from 3 initally)</p>