title: New sourceSet by gradle cannot be seen in Eclipse
body: <p>I have created additional source set called "integration-test" in my gradle project. Ewerything works fine, but eclipse cannot see dependency classes defined exactly for this source set.</p>
  
  <p><a href="https://i.stack.imgur.com/WsCT6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WsCT6.png" alt="enter image description here"></a>     </p>
  
  <pre><code>subprojects {
          apply plugin: 'java'
          apply plugin: 'eclipse'
  
          repositories {
             mavenCentral()
          }
  
          sourceSets {
              integrationTest {
                  java {
                      compileClasspath += main.output + test.output
                      runtimeClasspath += main.output + test.output
                      srcDir file('src/integration-test/java')
                  }
                  resources.srcDir file('src/integration-test/resources')
              }
          }
  
          configurations {
              integrationTestCompile.extendsFrom testCompile
              integrationTestRuntime.extendsFrom testRuntime
          }
  
          dependencies {
              testCompile 'junit:junit:4.12'
              testCompile 'org.mockito:mockito-all:1.10.19'
              integrationTestCompile 'org.springframework:spring-test:4.1.7.RELEASE'
              compile 'org.springframework:spring-context:4.1.7.RELEASE'
              compile 'org.springframework:spring-core:4.1.7.RELEASE'
          }
  
          task integrationTest(type: Test) {
              testClassesDir = sourceSets.integrationTest.output.classesDir
              classpath = sourceSets.integrationTest.runtimeClasspath
              outputs.upToDateWhen { false }
          }
  
          check.dependsOn integrationTest
          integrationTest.mustRunAfter test
  
          version = '1.0'
      }
  </code></pre>
  
  <p>When i build this project by command "build gradle", project is build, the only problem is with eclipse. If I change dependency 'org.springframework:spring-test:4.1.7.RELEASE' from "integrationTestCompile" to "testCompile", problem is gone. </p>