elasticsearch/x-pack/plugin/async-search/qa/rest/build.gradle
Rene Groeschke 13c8aaeffa
[Gradle] Remove static use of BuildParams (#115122)
Static fields dont do well in Gradle with configuration cache enabled.

- Use buildParams extension in build scripts
- Keep BuildParams.ci for now for easy serverless migration
-  Tweak testing doc
2024-11-15 17:58:57 +01:00

32 lines
817 B
Groovy

import org.elasticsearch.gradle.internal.info.BuildParams
apply plugin: 'elasticsearch.base-internal-es-plugin'
apply plugin: 'elasticsearch.internal-java-rest-test'
apply plugin: 'elasticsearch.legacy-yaml-rest-test'
apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
esplugin {
name 'x-pack-test-deprecated-query'
description 'Deprecated query plugin'
classname 'org.elasticsearch.query.DeprecatedQueryPlugin'
}
dependencies {
clusterPlugins project(xpackModule('async-search'))
}
restResources {
restApi {
include '_common', 'indices', 'index', 'async_search'
}
}
testClusters.configureEach {
testDistribution = 'DEFAULT'
setting 'xpack.security.enabled', 'false'
}
// Test clusters run with security disabled
tasks.named("yamlRestTest") {
buildParams.withFipsEnabledOnly(it)
}