Project idpFixtureProject = xpackProject("test:idp-fixture") evaluationDependsOn(idpFixtureProject.path) apply plugin: 'elasticsearch.standalone-test' apply plugin: 'elasticsearch.vagrantsupport' dependencies { testCompile project(path: xpackModule('core'), configuration: 'runtime') testCompile project(path: xpackModule('security'), configuration: 'testArtifacts') testCompile project(path: xpackModule('core'), configuration: 'testArtifacts') } task openLdapFixture { dependsOn "vagrantCheckVersion", "virtualboxCheckVersion", idpFixtureProject.up } String outputDir = "${project.buildDir}/generated-resources/${project.name}" task copyIdpTrust(type: Copy) { from idpFixtureProject.file('src/main/resources/certs/idptrust.jks'); into outputDir } if (project.rootProject.vagrantSupported) { project.sourceSets.test.output.dir(outputDir, builtBy: copyIdpTrust) test.dependsOn openLdapFixture test.finalizedBy idpFixtureProject.halt } else { test.enabled = false } namingConventions { // integ tests use Tests instead of IT skipIntegTestInDisguise = true }