2018-01-20 00:30:17 -05:00
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
esplugin {
|
|
|
|
name 'x-pack-monitoring'
|
|
|
|
description 'Elasticsearch Expanded Pack Plugin - Monitoring'
|
|
|
|
classname 'org.elasticsearch.xpack.monitoring.Monitoring'
|
|
|
|
hasNativeController true
|
|
|
|
requiresKeystore true
|
|
|
|
extendedPlugins = ['x-pack-core']
|
|
|
|
licenseFile project(':x-pack-elasticsearch').file('LICENSE.txt')
|
|
|
|
noticeFile project(':x-pack-elasticsearch').file('NOTICE.txt')
|
2017-12-08 11:41:32 -05:00
|
|
|
}
|
|
|
|
archivesBaseName = 'x-pack-monitoring'
|
|
|
|
|
|
|
|
// TODO: enable this once we have tests
|
|
|
|
licenseHeaders.enabled = false
|
|
|
|
|
2018-01-20 00:30:17 -05:00
|
|
|
integTest.enabled = false
|
|
|
|
|
2017-12-08 11:41:32 -05:00
|
|
|
dependencies {
|
|
|
|
provided "org.elasticsearch:elasticsearch:${version}"
|
|
|
|
|
2018-01-20 00:30:17 -05:00
|
|
|
provided "org.elasticsearch.plugin:x-pack-core:${version}"
|
|
|
|
testCompile project(path: ':x-pack-elasticsearch:plugin:core', configuration: 'testArtifacts')
|
2017-12-08 11:41:32 -05:00
|
|
|
|
|
|
|
// monitoring deps
|
|
|
|
compile "org.elasticsearch.client:elasticsearch-rest-client:${version}"
|
|
|
|
compile "org.elasticsearch.client:elasticsearch-rest-client-sniffer:${version}"
|
2018-01-20 00:30:17 -05:00
|
|
|
|
|
|
|
// baz - this goes away after we separate out the actions #27759
|
|
|
|
testCompile "org.elasticsearch.plugin:x-pack-watcher:${version}"
|
|
|
|
}
|
|
|
|
|
|
|
|
compileJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
|
|
|
|
compileTestJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
|
|
|
|
|
|
|
|
// TODO: don't publish test artifacts just to run messy tests, fix the tests!
|
|
|
|
// https://github.com/elastic/x-plugins/issues/724
|
|
|
|
configurations {
|
|
|
|
testArtifacts.extendsFrom testRuntime
|
|
|
|
}
|
|
|
|
task testJar(type: Jar) {
|
|
|
|
appendix 'test'
|
|
|
|
from sourceSets.test.output
|
|
|
|
}
|
|
|
|
artifacts {
|
|
|
|
// normal es plugins do not publish the jar but we need to since users need it for Transport Clients and extensions
|
|
|
|
archives jar
|
|
|
|
testArtifacts testJar
|
2017-12-08 11:41:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencyLicenses {
|
2017-12-08 16:42:50 -05:00
|
|
|
mapping from: /elasticsearch-rest-client.*/, to: 'elasticsearch'
|
|
|
|
mapping from: /http.*/, to: 'httpclient' // pulled in by rest client
|
|
|
|
mapping from: /commons-.*/, to: 'commons' // pulled in by rest client
|
|
|
|
ignoreSha 'x-pack-core'
|
|
|
|
ignoreSha 'elasticsearch-rest-client'
|
|
|
|
ignoreSha 'transport-netty4'
|
|
|
|
ignoreSha 'elasticsearch-rest-client-sniffer'
|
2017-12-08 11:41:32 -05:00
|
|
|
}
|
|
|
|
|
2018-01-20 00:30:17 -05:00
|
|
|
run {
|
|
|
|
plugin ':x-pack-elasticsearch:plugin:core'
|
2017-12-08 11:41:32 -05:00
|
|
|
}
|