64 lines
1.5 KiB
Groovy
64 lines
1.5 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
|
|
}
|
|
|
|
ext.versions = [
|
|
okhttp: '2.3.0'
|
|
]
|
|
|
|
dependencies {
|
|
licensePluginZip project(path: ':x-plugins:license:plugin') // zip
|
|
provided project(path: ':x-plugins:license:plugin', configuration: 'runtime')
|
|
provided project(path: ':x-plugins:shield', configuration: 'runtime')
|
|
testCompile 'org.elasticsearch:securemock:1.1'
|
|
|
|
// 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'
|
|
}
|
|
|
|
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 'license', configurations.licensePluginZip
|
|
}
|
|
}
|
|
|
|
bundlePlugin {
|
|
from(projectDir) {
|
|
include 'LICENSE.txt'
|
|
include 'NOTICE.txt'
|
|
}
|
|
}
|