OpenSearch/shield/build.gradle
Ryan Ernst 8119451a7b Build: Remove project attachment and use ES extra-plugins instead
This change removes the project attachment support, and instead relies
on x-plugins being checked out under extra-plugins/x-plugins within an
elasticsearch checkout. The only real change, other than removing
unnecessary code, was to rename the license/core project because gradle
project substitution has a bug which causes it to try and use ES core as
the substitution. (Unfortunately this is not reproduceable with a simple
example, so I have not yet filed an issue with gradle).

Original commit: elastic/x-pack-elasticsearch@fa315ffcb5
2015-11-21 11:13:32 -08:00

48 lines
1.2 KiB
Groovy

apply plugin: 'elasticsearch.esplugin'
esplugin {
name 'shield'
description 'Elasticsearch Shield (security)'
classname 'org.elasticsearch.shield.ShieldPlugin'
isolated false
}
configurations {
licensePluginZip
}
dependencies {
licensePluginZip project(path: ':x-plugins:license:plugin') // zip
provided project(path: ':x-plugins:license:plugin', configuration: 'runtime')
compile project(':x-plugins:license:plugin-api')
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'
testCompile 'com.google.jimfs:jimfs:1.0'
testCompile 'com.google.guava:guava:16.0.1' // needed by jimfs
}
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'
}
}