elasticsearch/x-pack/plugin/analytics/build.gradle
2025-03-05 08:02:13 +01:00

39 lines
1.1 KiB
Groovy

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-cluster-test'
apply plugin: 'elasticsearch.internal-java-rest-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'
}
tasks.named('javaRestTest') {
usesDefaultDistribution()
}
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.snapshotBuild == false) {
tasks.named("test").configure {
systemProperty 'es.index_mode_feature_flag_registered', 'true'
}
}