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
29 lines
835 B
Groovy
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'
|
|
}
|
|
}
|
|
|