2021-04-09 15:28:18 -04:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* The OpenSearch Contributors require contributions made to
|
|
|
|
* this file be licensed under the Apache-2.0 license or a
|
|
|
|
* compatible open source license.
|
|
|
|
*
|
|
|
|
* Modifications Copyright OpenSearch Contributors. See
|
|
|
|
* GitHub history for details.
|
|
|
|
*/
|
|
|
|
|
2021-03-11 00:06:21 -05:00
|
|
|
apply plugin: 'opensearch.yaml-rest-test'
|
|
|
|
apply plugin: 'opensearch.internal-cluster-test'
|
2020-07-06 15:16:26 -04:00
|
|
|
|
2021-03-11 00:06:21 -05:00
|
|
|
opensearchplugin {
|
2015-10-29 14:40:19 -04:00
|
|
|
description 'The Google Compute Engine (GCE) Discovery plugin allows to use GCE API for the unicast discovery mechanism.'
|
2021-03-11 00:06:21 -05:00
|
|
|
classname 'org.opensearch.plugin.discovery.gce.GceDiscoveryPlugin'
|
2015-10-29 14:40:19 -04:00
|
|
|
}
|
|
|
|
|
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 {
|
2020-06-30 09:57:41 -04:00
|
|
|
api "com.google.apis:google-api-services-compute:v1-rev160-${versions.google}"
|
|
|
|
api "com.google.api-client:google-api-client:${versions.google}"
|
2021-05-13 15:19:57 -04:00
|
|
|
api "com.google.oauth-client:google-oauth-client:1.31.0"
|
2020-06-30 09:57:41 -04:00
|
|
|
api "com.google.http-client:google-http-client:${versions.google}"
|
|
|
|
api "com.google.http-client:google-http-client-jackson2:${versions.google}"
|
|
|
|
api 'com.google.code.findbugs:jsr305:1.3.9'
|
|
|
|
api "org.apache.httpcomponents:httpclient:${versions.httpclient}"
|
|
|
|
api "org.apache.httpcomponents:httpcore:${versions.httpcore}"
|
|
|
|
api "commons-logging:commons-logging:${versions.commonslogging}"
|
|
|
|
api "org.apache.logging.log4j:log4j-1.2-api:${versions.log4j}"
|
|
|
|
api "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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-18 02:15:50 -04:00
|
|
|
tasks.named("dependencyLicenses").configure {
|
2015-10-29 14:40:19 -04:00
|
|
|
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
|
2021-12-10 16:03:41 -05:00
|
|
|
'javax.jms.Message',
|
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',
|
2021-05-13 15:19:57 -04:00
|
|
|
'org.apache.log.Logger',
|
|
|
|
'com.google.common.collect.Multiset',
|
|
|
|
'com.google.common.collect.SortedMultiset',
|
|
|
|
'com.google.common.collect.TreeMultiset',
|
2019-01-07 10:24:19 -05:00
|
|
|
)
|