mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 15:35:05 +00:00
Azure team released new versions of their Java SDK. According to https://github.com/Azure/azure-sdk-for-java/wiki/Azure-SDK-for-Java-Features, it comes with 2 versions. We should at least update to `0.9.0` of V1 but also consider moving to the new APIs (V2). This commit first updates to latest API V1. ```xml <dependency> <groupId>com.microsoft.azure</groupId> <artifactId>azure-svc-mgmt-compute</artifactId> <version>0.9.0</version> </dependency> ``` Closes #15209
69 lines
2.7 KiB
Groovy
69 lines
2.7 KiB
Groovy
/*
|
|
* Licensed to Elasticsearch under one or more contributor
|
|
* license agreements. See the NOTICE file distributed with
|
|
* this work for additional information regarding copyright
|
|
* ownership. Elasticsearch licenses this file to you under
|
|
* the Apache License, Version 2.0 (the "License"); you may
|
|
* not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing,
|
|
* software distributed under the License is distributed on an
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
* KIND, either express or implied. See the License for the
|
|
* specific language governing permissions and limitations
|
|
* under the License.
|
|
*/
|
|
|
|
esplugin {
|
|
description 'The Azure Discovery plugin allows to use Azure API for the unicast discovery mechanism.'
|
|
classname 'org.elasticsearch.plugin.discovery.azure.AzureDiscoveryPlugin'
|
|
}
|
|
|
|
versions << [
|
|
'azure': '0.9.0',
|
|
'jersey': '1.13'
|
|
]
|
|
|
|
dependencies {
|
|
compile "com.microsoft.azure:azure-svc-mgmt-compute:${versions.azure}"
|
|
compile "com.microsoft.azure:azure-core:${versions.azure}"
|
|
compile "org.apache.httpcomponents:httpclient:${versions.httpclient}"
|
|
compile "org.apache.httpcomponents:httpcore:${versions.httpcore}"
|
|
compile "commons-logging:commons-logging:${versions.commonslogging}"
|
|
compile "commons-codec:commons-codec:${versions.commonscodec}"
|
|
compile "commons-lang:commons-lang:2.6"
|
|
compile "commons-io:commons-io:2.4"
|
|
compile 'javax.mail:mail:1.4.5'
|
|
compile 'javax.activation:activation:1.1'
|
|
compile 'javax.inject:javax.inject:1'
|
|
compile "com.sun.jersey:jersey-client:${versions.jersey}"
|
|
compile "com.sun.jersey:jersey-core:${versions.jersey}"
|
|
compile "com.sun.jersey:jersey-json:${versions.jersey}"
|
|
compile 'org.codehaus.jettison:jettison:1.1'
|
|
compile 'com.sun.xml.bind:jaxb-impl:2.2.3-1'
|
|
compile 'javax.xml.bind:jaxb-api:2.2.2'
|
|
compile 'javax.xml.stream:stax-api:1.0-2'
|
|
compile 'org.codehaus.jackson:jackson-core-asl:1.9.2'
|
|
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.2'
|
|
compile 'org.codehaus.jackson:jackson-jaxrs:1.9.2'
|
|
compile 'org.codehaus.jackson:jackson-xc:1.9.2'
|
|
}
|
|
|
|
dependencyLicenses {
|
|
mapping from: /azure-.*/, to: 'azure'
|
|
mapping from: /jackson-.*/, to: 'jackson'
|
|
mapping from: /jersey-.*/, to: 'jersey'
|
|
mapping from: /jaxb-.*/, to: 'jaxb'
|
|
mapping from: /stax-.*/, to: 'stax'
|
|
}
|
|
|
|
compileJava.options.compilerArgs << '-Xlint:-path,-serial,-static,-unchecked'
|
|
// TODO: why is deprecation needed here but not in maven....?
|
|
compileJava.options.compilerArgs << '-Xlint:-deprecation'
|
|
// TODO: and why does this static not show up in maven...
|
|
compileTestJava.options.compilerArgs << '-Xlint:-static'
|
|
|