title: How to include a dependency to parent test classes for a submodule in a Gradle multiple project build?
body: <p>I have a multiple project Gradle build in which a submodule need to reference some helper classes defined in the parent module test configuration. </p>
  
  <p>In the submodule I've added the following definition: </p>
  
  <pre><code>dependencies {
      compile project(path: ':')
      testCompile project(path: ':', configuration: 'testCompile')
  }
  </code></pre>
  
  <p>However the submodule test compilation faila because it is unable to resolve classes defined in the parent testCompile configuration. </p>
  
  <p>How to reference the parent test configuration in a submodule in a Gradle build ?  </p>