mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-19 04:45:07 -04:00
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
32 lines
817 B
Groovy
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)
|
|
}
|