2015-10-29 14:44:48 -04:00
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
esplugin {
|
2015-11-11 12:18:24 -05:00
|
|
|
name 'shield'
|
2015-10-29 14:44:48 -04:00
|
|
|
description 'Elasticsearch Shield (security)'
|
|
|
|
classname 'org.elasticsearch.shield.ShieldPlugin'
|
|
|
|
isolated false
|
|
|
|
}
|
|
|
|
|
2015-11-06 06:34:44 -05:00
|
|
|
configurations {
|
|
|
|
licensePluginZip
|
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')
|
|
|
|
compile project("${projectsPrefix}:license:plugin-api")
|
2015-10-29 14:44:48 -04:00
|
|
|
compile 'dk.brics.automaton:automaton:1.11-8'
|
|
|
|
compile 'com.unboundid:unboundid-ldapsdk:2.3.8'
|
|
|
|
testCompile 'org.slf4j:slf4j-log4j12:1.6.2'
|
|
|
|
testCompile 'org.elasticsearch:securemock:1.1'
|
2015-11-04 14:24:20 -05:00
|
|
|
testCompile 'com.google.jimfs:jimfs:1.0'
|
2015-11-11 13:40:03 -05:00
|
|
|
testCompile 'com.google.guava:guava:16.0.1' // needed by jimfs
|
2015-10-29 14:44:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
forbiddenPatterns {
|
|
|
|
exclude '**/*.p12'
|
|
|
|
}
|
|
|
|
|
|
|
|
compileJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
|
|
|
|
compileTestJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
|
|
|
|
|
|
|
|
// no integ tests...
|
|
|
|
integTest.enabled = false
|
|
|
|
|
|
|
|
// TODO: standardize packaging config for plugins
|
|
|
|
bundlePlugin {
|
|
|
|
from(projectDir) {
|
|
|
|
include 'LICENSE.txt'
|
|
|
|
include 'NOTICE.txt'
|
|
|
|
}
|
|
|
|
from('bin/shield') {
|
|
|
|
into 'bin'
|
|
|
|
}
|
|
|
|
from('config/shield') {
|
|
|
|
into 'config'
|
|
|
|
}
|
|
|
|
}
|