title: Gradle GWT multiproject, compileGwt not finding subproject classpath
body: <p>I have a multiproject GWt Gradle where the compileGwt from gradle does not find a subproject but if I use the standard Eclipse GWT plugin it compiles fine</p>
  
  <p>When building through gradle I get the following error</p>
  
  <pre><code>:main:compileGwt
  Loading inherited module 'com.stratebo.gwt.client.main.MainPage'
  Loading inherited module 'com.stratebo.gwt.common'
    [ERROR] Unable to find 'com/stratebo/gwt/common.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
  </code></pre>
  
  <p>the project structure is as follows:</p>
  
  <pre><code>TMSRoot
  |--settings.gradle
  |--build.gradle
  |--CommonGwt
  |----build.gradle
  |--main
  |----build.gradle
  </code></pre>
  
  <p>The Tms Root settings.gradle</p>
  
  <pre><code>include "CommonGWT", "main"
  </code></pre>
  
  <p>The TmsRoot build.gradle</p>
  
  <pre><code>subprojects {
  apply plugin: 'java'
  apply plugin: 'eclipse'
  
  repositories {
     mavenCentral()
  }
  
  dependencies {
      testCompile 'junit:junit:4.8.2'
  
  }
  
  version = '1.0'
  
  jar {
      manifest.attributes provider: 'Stratebo Technologies'
  }
  }
  project('main'){
  dependencies {
  compile project(":CommonGWT")
  }
  }
  </code></pre>
  
  <p>The CommonGWT build.gradle </p>
  
  <pre><code>apply plugin: 'war'
  apply plugin: 'java'
  apply plugin: 'gwt'
  apply plugin: 'eclipse'
  apply plugin: 'jetty'
  
  
  dependencies {
  compile 'org.slf4j:slf4j-api:1.7.12'
  testCompile 'junit:junit:4.12'
  }
  sourceCompatibility = 1.7
  targetCompatibility = 1.7
  version = '1.0'
  buildscript {
      repositories {
          jcenter() //repository where to fetch gwt gradle plugin
  }
  dependencies {
      classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
      classpath  files(project(":CommonGWT").sourceSets.main.java.srcDirs)
  }
  }
  
  repositories {
     mavenCentral()
  }
  
  compileJava{
      options.incremental = true
  }
  
  gwt {
     gwtVersion='2.7.0'
     modules 'com.stratebo.gwt.common'
  
    sourceSets {
      main {
          java {
              srcDir 'src'
          }
      }
  }
  logLevel = 'ERROR'
  minHeapSize = "512M";
  maxHeapSize = "1024M";
  superDev {
      noPrecompile=true
  }
  
  Eclipse.
  eclipse{
      addGwtContainer=false // Default set to true
  }
  
  jettyRunWar.httpPort = 8089
  }
  task wrapper(type: Wrapper) {
      gradleVersion = '2.8'
  }
  </code></pre>
  
  <p>The main build.gradle</p>
  
  <pre><code>apply plugin: 'war'
  apply plugin: 'java'
  apply plugin: 'gwt'
  apply plugin: 'eclipse'
  apply plugin: 'jetty'
  
  
  dependencies {
  compile 'org.slf4j:slf4j-api:1.7.12'
  testCompile 'junit:junit:4.12'
  }
  
  sourceCompatibility = 1.7
  targetCompatibility = 1.7
  
  version = '1.0'
  
  dependencies{
  compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
  compile group: 'commons-codec', name: 'commons-codec', version: '1.5'
  compile group: 'org.gwtbootstrap3', name: 'gwtbootstrap3', version: '0.9.1'
  compile group: 'junit', name: 'junit', version: '4.11'
  compile project(':CommonGWT')
  
  testCompile group: 'junit', name: 'junit', version: '4.+'
  }
  
   def platformSources() {
  
  return files('../CommonGWT/src/main/java', '../CommonGWT/src/main/resources')
  
  }
  buildscript {
  repositories {
      jcenter() //repository where to fetch gwt gradle plugin
  }
  dependencies {
  classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
  }
  }
  
  repositories {
  mavenCentral()
  }
  
  compileJava{
  options.incremental = true
  }
  gwt {
  gwtVersion='2.7.0'
  modules 'com.stratebo.gwt.client.main.MainPage'
  sourceSets {
      main {
          java {
              srcDir 'src'
  
          }
      }
  }
  logLevel = 'ERROR'
  minHeapSize = "512M";
  maxHeapSize = "1024M";
  superDev {
      noPrecompile=true
  }
  eclipse{
      addGwtContainer=false // Default set to true
  }
  //Specify the deployment Port
  jettyRunWar.httpPort = 8089
  }
  task wrapper(type: Wrapper) {
  gradleVersion = '2.8'
  }
  </code></pre>
  
  <p>the CommonGWt common.gwt.xml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.6.1//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.6.1/distro-source/core/src/gwt-module.dtd"&gt;
  &lt;module&gt;
  &lt;inherits name="com.google.gwt.user.User" /&gt;
  &lt;inherits name="com.stratebo.gwt.common" /&gt;
  &lt;source path="client" /&gt;
  &lt;source path="common" /&gt;
  &lt;/module&gt;
  </code></pre>
  
  <p>And finally the Main MainPage.gwt.xml</p>
  
  <p>
      </p>
  
  <pre><code>&lt;module&gt;
      &lt;inherits name="org.gwtbootstrap3.GwtBootstrap3NoTheme" /&gt;
      &lt;inherits name="com.google.gwt.user.User" /&gt;
      &lt;stylesheet src="/mytheme.cache.css" /&gt;
      &lt;entry-point class="com.stratebo.gwt.client.main.MainPage"&gt;
  &lt;/entry-point&gt;
  &lt;inherits name="com.stratebo.gwt.common" /&gt;
  &lt;source path="client" /&gt;
  &lt;source path="common" /&gt;
  &lt;/module&gt;
  </code></pre>
  
  <p>any help greatly appreciated</p>