mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
* Introduced test qa lib that all CCR qa modules depend on to avoid test code duplication.
29 lines
685 B
Groovy
29 lines
685 B
Groovy
import org.elasticsearch.gradle.test.RestIntegTestTask
|
|
|
|
apply plugin: 'elasticsearch.build'
|
|
test.enabled = false
|
|
|
|
dependencies {
|
|
compile project(':test:framework')
|
|
}
|
|
|
|
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/**'
|
|
}
|
|
}
|
|
}
|
|
|
|
/* 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) {
|
|
assemble.enabled = false
|
|
}
|
|
}
|
|
}
|