I introduced the sourceSet ‘integrationTest’ and everything worked fine (Intellj 12, gradle itself of course).
I defined sourceSets, configurations, dependencies as usual:
sourceSets {
integrationTest {
compileClasspath = sourceSets.main.output + configurations.integrationTestCompile
runtimeClasspath = output + sourceSets.main.output + configurations.integrationTestRuntime
}
}
configurations {
integrationTestCompile.extendsFrom compile, testCompile
integrationTestRuntime.extendsFrom runtime, integrationTestCompile, testRuntime
}
dependencies {
integrationTestCompile (
....
}
}
At the end of my build file I added the following block to the idea plugin:
idea {
module {
//and some extra test source dirs
testSourceDirs += file('src/integrationTest/java')
// put additional dependencies on the classpath
scopes.TEST.plus += configurations.integrationTestCompile
scopes.TEST.plus += configurations.integrationTestRuntime
}
}
Since the update, the dependencies won’t be available in the IDE any more. As said before, with version 12 this worked