Igor Motov 12d4f10faa SQL: Switch JDBC to REST protocol ()
Replaces binary serialization protocol in JDBC driver with the common REST protocol.

relates 

Original commit: elastic/x-pack-elasticsearch@532c106658
2018-01-16 13:26:06 -05:00

31 lines
1.1 KiB
Groovy

description = 'JDBC driver for Elasticsearch'
forbiddenApisMain {
// does not depend on core, so only jdk and http signatures should be checked
signaturesURLs = [this.class.getResource('/forbidden/jdk-signatures.txt')]
}
dependencies {
compile project(':x-pack-elasticsearch:sql:shared-client')
compile project(':x-pack-elasticsearch:sql:rest-proto')
runtime "com.fasterxml.jackson.core:jackson-core:${versions.jackson}"
/* We want to limit these dependencies so we don't have a huge jar.
* Since we shadow these dependencies we don't have to be super careful
* but we have to be *somewhat* careful because things like commons logging
* don't shadow properly. */
}
dependencyLicenses {
mapping from: /shared-client.*/, to: 'elasticsearch'
mapping from: /jackson-.*/, to: 'jackson'
mapping from: /rest-proto.*/, to: 'elasticsearch'
mapping from: /lucene-.*/, to: 'lucene'
mapping from: /elasticsearch-core.*/, to: 'elasticsearch'
ignoreSha 'rest-proto'
ignoreSha 'shared-client'
ignoreSha 'elasticsearch'
ignoreSha 'elasticsearch-core'
}
// TODO: Restore shading when https://github.com/elastic/elasticsearch/pull/27955 gets in