OpenSearch/marvel/build.gradle
Ryan Ernst d1b5d020f5 Switch to gradle build system.
See elastic/elasticsearchelastic/elasticsearch#13930

Original commit: elastic/x-pack-elasticsearch@b8d26ebd2a
2015-10-29 11:44:48 -07:00

54 lines
1.2 KiB
Groovy

import org.elasticsearch.gradle.MavenFilteringHack
apply plugin: 'elasticsearch.esplugin'
esplugin {
name 'marvel-agent'
description 'Elasticsearch Marvel'
classname 'org.elasticsearch.marvel.MarvelPlugin'
isolated false
}
configurations {
licensePluginZip
}
dependencies {
licensePluginZip project(path: ':license:plugin') // zip
provided project(path: ':license:plugin', configuration: 'runtime')
provided project(path: ':shield', configuration: 'runtime')
testCompile 'org.elasticsearch:securemock:1.1'
testCompile 'com.squareup.okhttp:mockwebserver:2.3.0'
}
compileJava.options.compilerArgs << '-Xlint:-rawtypes,-unchecked'
compileTestJava.options.compilerArgs << '-Xlint:-rawtypes,-unchecked'
ext.expansions = [
'project.version': version,
'integ.http.port': integTest.cluster.httpPort
]
processResources {
inputs.properties(expansions)
MavenFilteringHack.filter(it, expansions)
}
processTestResources {
inputs.properties(expansions)
MavenFilteringHack.filter(it, expansions)
}
integTest {
dependsOn configurations.licensePluginZip
cluster {
plugin 'installLicensePlugin', configurations.licensePluginZip
}
}
bundlePlugin {
from(projectDir) {
include 'LICENSE.txt'
include 'NOTICE.txt'
}
}