|
@@ -52,6 +52,15 @@ public class IntegrationTestPlugin implements Plugin<Project> {
|
|
|
// ensure we don't add if no tests to avoid adding Gretty
|
|
|
return
|
|
|
}
|
|
|
+ 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.integrationTestCompileClasspath
|
|
|
+ runtimeClasspath = output + compileClasspath + project.configurations.integrationTestRuntimeClasspath
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
project.configurations {
|
|
|
integrationTestCompile {
|
|
|
extendsFrom testImplementation
|
|
@@ -69,15 +78,6 @@ public class IntegrationTestPlugin implements Plugin<Project> {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- 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.integrationTestCompileClasspath
|
|
|
- runtimeClasspath = output + compileClasspath + project.configurations.integrationTestRuntimeClasspath
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
Task integrationTestTask = project.tasks.create("integrationTest", Test) {
|
|
|
group = 'Verification'
|
|
|
description = 'Runs the integration tests.'
|