diff --git a/buildSrc/src/main/groovy/io/spring/gradle/convention/IntegrationTestPlugin.groovy b/buildSrc/src/main/groovy/io/spring/gradle/convention/IntegrationTestPlugin.groovy index 9858458b8f..059fdfbc8b 100644 --- a/buildSrc/src/main/groovy/io/spring/gradle/convention/IntegrationTestPlugin.groovy +++ b/buildSrc/src/main/groovy/io/spring/gradle/convention/IntegrationTestPlugin.groovy @@ -59,14 +59,22 @@ public class IntegrationTestPlugin implements Plugin { integrationTestRuntime { extendsFrom integrationTestCompile, testRuntime, testRuntimeOnly } + integrationTestCompileClasspath { + extendsFrom integrationTestCompile + canBeResolved = true + } + integrationTestRuntimeClasspath { + extendsFrom integrationTestRuntime + canBeResolved = true + } } project.sourceSets { integrationTest { java.srcDir project.file('src/integration-test/java') resources.srcDir project.file('src/integration-test/resources') - compileClasspath = project.sourceSets.main.output + project.sourceSets.test.output + project.configurations.integrationTestCompile - runtimeClasspath = output + compileClasspath + project.configurations.integrationTestRuntime + compileClasspath = project.sourceSets.main.output + project.sourceSets.test.output + project.configurations.integrationTestCompileClasspath + runtimeClasspath = output + compileClasspath + project.configurations.integrationTestRuntimeClasspath } } @@ -85,7 +93,7 @@ public class IntegrationTestPlugin implements Plugin { project.idea { module { testSourceDirs += project.file('src/integration-test/java') - scopes.TEST.plus += [ project.configurations.integrationTestCompile ] + scopes.TEST.plus += [ project.configurations.integrationTestCompileClasspath ] } } } @@ -115,7 +123,7 @@ public class IntegrationTestPlugin implements Plugin { project.plugins.withType(EclipsePlugin) { project.eclipse.classpath { - plusConfigurations += [ project.configurations.integrationTestCompile ] + plusConfigurations += [ project.configurations.integrationTestCompileClasspath ] } } }