2018-09-17 09:59:22 -04:00
|
|
|
import org.elasticsearch.gradle.test.RestIntegTestTask
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
project.tasks.withType(RestIntegTestTask) {
|
|
|
|
final File xPackResources = new File(xpackProject('plugin').projectDir, 'src/test/resources')
|
|
|
|
project.copyRestSpec.from(xPackResources) {
|
|
|
|
include 'rest-api-spec/api/**'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-04-13 19:11:28 +02:00
|
|
|
|
|
|
|
/* Remove assemble on all qa projects because we don't need to publish
|
|
|
|
* artifacts for them. */
|
|
|
|
gradle.projectsEvaluated {
|
|
|
|
subprojects {
|
|
|
|
Task assemble = project.tasks.findByName('assemble')
|
|
|
|
if (assemble) {
|
2018-09-04 07:32:14 +03:00
|
|
|
assemble.enabled = false
|
2018-04-13 19:11:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|