elasticsearch/x-pack/plugin/analytics/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

29 lines
835 B
Groovy

import org.elasticsearch.gradle.internal.info.BuildParams
apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
name 'x-pack-analytics'
description 'Elasticsearch Expanded Pack Plugin - Analytics'
classname 'org.elasticsearch.xpack.analytics.AnalyticsPlugin'
extendedPlugins = ['x-pack-core']
}
base {
archivesName = 'x-pack-analytics'
}
dependencies {
api 'org.apache.commons:commons-math3:3.6.1'
compileOnly project(path: xpackModule('core'))
compileOnly project(":server")
testImplementation project(path: ':modules:aggregations')
testImplementation(testArtifact(project(xpackModule('core'))))
}
if (buildParams.isSnapshotBuild() == false) {
tasks.named("test").configure {
systemProperty 'es.index_mode_feature_flag_registered', 'true'
}
}