2018-01-20 00:30:17 -05:00
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
2020-05-12 00:06:04 -04:00
|
|
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
2018-01-20 00:30:17 -05:00
|
|
|
esplugin {
|
2019-11-14 06:01:23 -05:00
|
|
|
name 'x-pack-monitoring'
|
|
|
|
description 'Elasticsearch Expanded Pack Plugin - Monitoring'
|
|
|
|
classname 'org.elasticsearch.xpack.monitoring.Monitoring'
|
|
|
|
extendedPlugins = ['x-pack-core']
|
2017-12-08 11:41:32 -05:00
|
|
|
}
|
|
|
|
archivesBaseName = 'x-pack-monitoring'
|
|
|
|
|
|
|
|
dependencies {
|
2019-11-14 06:01:23 -05:00
|
|
|
compileOnly project(path: xpackModule('core'), configuration: 'default')
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
2017-12-08 11:41:32 -05:00
|
|
|
|
2019-11-14 06:01:23 -05:00
|
|
|
// monitoring deps
|
2020-06-30 09:57:41 -04:00
|
|
|
api project(':client:rest')
|
|
|
|
api project(':client:sniffer')
|
2018-01-20 00:30:17 -05:00
|
|
|
|
2019-11-14 06:01:23 -05:00
|
|
|
// baz - this goes away after we separate out the actions #27759
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(xpackModule('watcher'))
|
2019-02-21 23:42:53 -05:00
|
|
|
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(xpackModule('ilm'))
|
2018-01-20 00:30:17 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
2019-11-14 06:01:23 -05:00
|
|
|
testArtifacts.extendsFrom testRuntime
|
2020-06-14 16:30:44 -04:00
|
|
|
testArtifacts.extendsFrom testImplementation
|
2018-01-20 00:30:17 -05:00
|
|
|
}
|
2020-07-31 07:09:04 -04:00
|
|
|
TaskProvider testJar = tasks.register("testJar", Jar) {
|
2019-11-14 06:01:23 -05:00
|
|
|
appendix 'test'
|
|
|
|
from sourceSets.test.output
|
2018-01-20 00:30:17 -05:00
|
|
|
}
|
|
|
|
artifacts {
|
2019-11-14 06:01:23 -05:00
|
|
|
// normal es plugins do not publish the jar but we need to since users need it for Transport Clients and extensions
|
2020-07-31 07:09:04 -04:00
|
|
|
archives tasks.named("jar")
|
2019-11-14 06:01:23 -05:00
|
|
|
testArtifacts testJar
|
2017-12-08 11:41:32 -05:00
|
|
|
}
|
|
|
|
|
2020-06-18 02:15:50 -04:00
|
|
|
tasks.named("dependencyLicenses").configure {
|
2019-11-14 06:01:23 -05:00
|
|
|
mapping from: /http.*/, to: 'httpclient' // pulled in by rest client
|
|
|
|
mapping from: /commons-.*/, to: 'commons' // pulled in by rest client
|
2017-12-08 11:41:32 -05:00
|
|
|
}
|