mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
26c8e949a4
In elastic/elasticsearchelastic/elasticsearch#14668, transitive dependencies were removed from elasticsearch, and plugins now no longer get transitive deps either. This commit fixes xplugins to remove transitive deps. Original commit: elastic/x-pack-elasticsearch@5c41657b6e
64 lines
1.6 KiB
Groovy
64 lines
1.6 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: "${projectsPrefix}:license:plugin") // zip
|
|
provided project(path: "${projectsPrefix}:license:plugin", configuration: 'runtime')
|
|
provided project(path: "${projectsPrefix}: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'
|
|
}
|
|
}
|