OpenSearch/qa/build.gradle
Rory Hunter c46a0e8708
Apply 2-space indent to all gradle scripts (#49071)
Backport of #48849. Update `.editorconfig` to make the Java settings the
default for all files, and then apply a 2-space indent to all `*.gradle`
files. Then reformat all the files.
2019-11-14 11:01:23 +00:00

22 lines
791 B
Groovy

import org.elasticsearch.gradle.test.RestIntegTestTask
import org.elasticsearch.gradle.testclusters.TestClustersPlugin
subprojects { Project subproj ->
subproj.tasks.withType(RestIntegTestTask) {
if (subproj.extensions.findByName("${it.name}Cluster")) {
subproj.extensions.configure("${it.name}Cluster") { cluster ->
cluster.distribution = System.getProperty('tests.distribution', 'oss')
}
}
}
plugins.withType(TestClustersPlugin).whenPluginAdded {
testClusters.all {
String configuredTestDistribution = System.getProperty('tests.distribution', 'oss').toUpperCase()
testDistribution = configuredTestDistribution
if (configuredTestDistribution.equals("DEFAULT")) {
setting "xpack.security.enabled", "false"
}
}
}
}