2018-01-18 09:33:16 -05:00
|
|
|
apply plugin: 'elasticsearch.build'
|
|
|
|
|
|
|
|
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 {
|
|
|
|
/* We want to limit these dependencies so we don't have a huge jar.
|
|
|
|
* Since we shade 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.
|
|
|
|
*
|
|
|
|
* Note: we've temporarily disabled shading. */
|
2018-02-07 23:50:12 -05:00
|
|
|
compile xpackProject('plugin:sql:sql-shared-client')
|
|
|
|
compile xpackProject('plugin:sql:sql-proto')
|
2018-01-18 09:33:16 -05:00
|
|
|
runtime "com.fasterxml.jackson.core:jackson-core:${versions.jackson}"
|
|
|
|
testCompile "org.elasticsearch.test:framework:${version}"
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencyLicenses {
|
2018-01-18 11:15:02 -05:00
|
|
|
mapping from: /sql-proto.*/, to: 'elasticsearch'
|
|
|
|
mapping from: /sql-shared-client.*/, to: 'elasticsearch'
|
2018-01-18 09:33:16 -05:00
|
|
|
mapping from: /jackson-.*/, to: 'jackson'
|
|
|
|
mapping from: /lucene-.*/, to: 'lucene'
|
|
|
|
mapping from: /elasticsearch-core.*/, to: 'elasticsearch'
|
2018-01-18 11:15:02 -05:00
|
|
|
ignoreSha 'sql-proto'
|
|
|
|
ignoreSha 'sql-shared-client'
|
2018-01-18 09:33:16 -05:00
|
|
|
ignoreSha 'elasticsearch'
|
|
|
|
ignoreSha 'elasticsearch-core'
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: Restore shading when https://github.com/elastic/elasticsearch/pull/27955 gets in
|