2015-10-29 14:44:48 -04:00
|
|
|
import org.elasticsearch.gradle.MavenFilteringHack
|
|
|
|
|
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
esplugin {
|
2015-11-11 12:18:24 -05:00
|
|
|
name 'watcher'
|
2015-10-29 14:44:48 -04:00
|
|
|
description 'Elasticsearch Watcher'
|
|
|
|
classname 'org.elasticsearch.watcher.WatcherPlugin'
|
|
|
|
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-20 15:02:25 -05:00
|
|
|
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')
|
2015-10-29 14:44:48 -04:00
|
|
|
|
|
|
|
compile 'com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:r239'
|
2015-11-23 19:52:01 -05:00
|
|
|
compile 'com.google.guava:guava:16.0.1'
|
2015-11-11 12:18:24 -05:00
|
|
|
compile 'com.google.code.findbugs:jsr305:3.0.1'
|
2015-10-29 14:44:48 -04:00
|
|
|
compile 'com.sun.mail:javax.mail:1.5.3'
|
|
|
|
compile 'javax.activation:activation:1.1.1'
|
|
|
|
|
2015-11-11 12:18:24 -05:00
|
|
|
testCompile 'org.subethamail:subethasmtp:3.1.7'
|
|
|
|
|
|
|
|
// 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
|
|
|
testCompile 'org.slf4j:slf4j-log4j12:1.6.2'
|
2015-11-11 12:18:24 -05:00
|
|
|
testCompile 'org.slf4j:slf4j-api:1.6.2'
|
2015-10-29 14:44:48 -04:00
|
|
|
testCompile 'org.elasticsearch:securemock:1.1'
|
|
|
|
}
|
|
|
|
|
|
|
|
compileJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
|
|
|
|
compileTestJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
|
|
|
|
|
|
|
|
/*ext.expansions = [
|
|
|
|
'integ.http.port': integTest.cluster.httpPort
|
|
|
|
]
|
|
|
|
|
|
|
|
processTestResources {
|
|
|
|
inputs.properties(expansions)
|
|
|
|
with copySpec {
|
|
|
|
MavenFilteringHack.filter(it, expansions)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
integTest {
|
|
|
|
dependsOn configurations.licensePluginZip
|
|
|
|
cluster {
|
|
|
|
plugin 'installLicensePlugin', configurations.licensePluginZip
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: standardize packaging config for plugins
|
|
|
|
bundlePlugin {
|
|
|
|
from(projectDir) {
|
|
|
|
include 'LICENSE.txt'
|
|
|
|
include 'NOTICE.txt'
|
|
|
|
}
|
|
|
|
from('bin/watcher') {
|
|
|
|
into 'bin'
|
|
|
|
}
|
|
|
|
}
|