2015-10-29 14:40:19 -04:00
|
|
|
esplugin {
|
|
|
|
description 'The Google Compute Engine (GCE) Discovery plugin allows to use GCE API for the unicast discovery mechanism.'
|
|
|
|
classname 'org.elasticsearch.plugin.discovery.gce.GceDiscoveryPlugin'
|
|
|
|
}
|
|
|
|
|
2015-11-10 17:58:46 -05:00
|
|
|
versions << [
|
2017-11-15 09:30:27 -05:00
|
|
|
'google': '1.23.0'
|
2015-11-10 17:58:46 -05:00
|
|
|
]
|
|
|
|
|
2015-10-29 14:40:19 -04:00
|
|
|
dependencies {
|
2017-11-15 09:30:27 -05:00
|
|
|
compile "com.google.apis:google-api-services-compute:v1-rev160-${versions.google}"
|
2015-11-10 17:58:46 -05:00
|
|
|
compile "com.google.api-client:google-api-client:${versions.google}"
|
|
|
|
compile "com.google.oauth-client:google-oauth-client:${versions.google}"
|
|
|
|
compile "com.google.http-client:google-http-client:${versions.google}"
|
|
|
|
compile "com.google.http-client:google-http-client-jackson2:${versions.google}"
|
|
|
|
compile 'com.google.code.findbugs:jsr305:1.3.9'
|
2015-10-29 14:40:19 -04:00
|
|
|
compile "org.apache.httpcomponents:httpclient:${versions.httpclient}"
|
2015-11-10 17:58:46 -05:00
|
|
|
compile "org.apache.httpcomponents:httpcore:${versions.httpcore}"
|
|
|
|
compile "commons-logging:commons-logging:${versions.commonslogging}"
|
2019-05-30 16:06:11 -04:00
|
|
|
compile "org.apache.logging.log4j:log4j-1.2-api:${versions.log4j}"
|
2015-11-10 17:58:46 -05:00
|
|
|
compile "commons-codec:commons-codec:${versions.commonscodec}"
|
2015-10-29 14:40:19 -04:00
|
|
|
}
|
|
|
|
|
2020-03-19 13:28:59 -04:00
|
|
|
restResources {
|
|
|
|
restApi {
|
|
|
|
includeCore '_common', 'cluster', 'nodes'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-29 14:40:19 -04:00
|
|
|
dependencyLicenses {
|
|
|
|
mapping from: /google-.*/, to: 'google'
|
|
|
|
}
|
|
|
|
|
2018-10-03 05:37:36 -04:00
|
|
|
check {
|
|
|
|
// also execute the QA tests when testing the plugin
|
|
|
|
dependsOn 'qa:gce:check'
|
|
|
|
}
|
|
|
|
|
2019-04-09 14:52:50 -04:00
|
|
|
test {
|
2015-10-29 14:40:19 -04:00
|
|
|
// this is needed for insecure plugins, remove if possible!
|
2019-11-14 06:01:23 -05:00
|
|
|
systemProperty 'tests.artifact', project.name
|
2015-10-29 14:40:19 -04:00
|
|
|
}
|
2015-12-16 16:38:16 -05:00
|
|
|
|
2019-11-14 06:01:23 -05:00
|
|
|
thirdPartyAudit.ignoreMissingClasses(
|
2015-12-28 22:38:55 -05:00
|
|
|
// classes are missing
|
2019-11-14 06:01:23 -05:00
|
|
|
'com.google.common.base.Splitter',
|
|
|
|
'com.google.common.collect.Lists',
|
|
|
|
'javax.servlet.ServletContextEvent',
|
|
|
|
'javax.servlet.ServletContextListener',
|
|
|
|
'org.apache.avalon.framework.logger.Logger',
|
|
|
|
'org.apache.log.Hierarchy',
|
2019-01-07 10:24:19 -05:00
|
|
|
'org.apache.log.Logger'
|
|
|
|
)
|