2015-10-29 14:44:48 -04:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2015-11-11 12:18:24 -05:00
|
|
|
ext.versions = [
|
|
|
|
okhttp: '2.3.0'
|
|
|
|
]
|
|
|
|
|
2015-10-29 14:44:48 -04:00
|
|
|
dependencies {
|
2015-11-06 14:00:27 -05:00
|
|
|
licensePluginZip project(path: "${projectsPrefix}:license:plugin") // zip
|
|
|
|
provided project(path: "${projectsPrefix}:license:plugin", configuration: 'runtime')
|
|
|
|
provided project(path: "${projectsPrefix}:shield", configuration: 'runtime')
|
2015-10-29 14:44:48 -04:00
|
|
|
testCompile 'org.elasticsearch:securemock:1.1'
|
2015-11-11 12:18:24 -05:00
|
|
|
|
|
|
|
// mock web server
|
|
|
|
testCompile "com.squareup.okhttp:mockwebserver:${versions.okhttp}"
|
|
|
|
testCompile "com.squareup.okhttp:okhttp:${versions.okhttp}"
|
|
|
|
testCompile "com.squareup.okhttp:okhttp-ws:${versions.okhttp}"
|
|
|
|
testCompile 'com.squareup.okio:okio:1.3.0'
|
|
|
|
testCompile 'org.bouncycastle:bcprov-jdk15on:1.50'
|
2015-10-29 14:44:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2015-11-11 12:18:24 -05:00
|
|
|
plugin 'license', configurations.licensePluginZip
|
2015-10-29 14:44:48 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bundlePlugin {
|
|
|
|
from(projectDir) {
|
|
|
|
include 'LICENSE.txt'
|
|
|
|
include 'NOTICE.txt'
|
|
|
|
}
|
|
|
|
}
|