2018-01-18 09:33:16 -05:00
|
|
|
apply plugin: 'elasticsearch.build'
|
2018-04-12 15:43:35 -04:00
|
|
|
apply plugin: 'nebula.maven-base-publish'
|
|
|
|
apply plugin: 'nebula.maven-scm'
|
2018-06-08 10:15:28 -04:00
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
2018-01-18 09:33:16 -05:00
|
|
|
|
|
|
|
description = 'JDBC driver for Elasticsearch'
|
2018-06-08 10:15:28 -04:00
|
|
|
archivesBaseName = "x-pack-sql-jdbc"
|
2018-01-18 09:33:16 -05:00
|
|
|
|
|
|
|
forbiddenApisMain {
|
2019-11-14 06:01:23 -05:00
|
|
|
// does not depend on core, so only jdk and http signatures should be checked
|
|
|
|
replaceSignatureFiles 'jdk-signatures'
|
2018-01-18 09:33:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-11-14 06:01:23 -05:00
|
|
|
compile(xpackProject('plugin:sql:sql-client')) {
|
|
|
|
transitive = false
|
|
|
|
}
|
|
|
|
compile(xpackProject('plugin:sql:sql-proto')) {
|
|
|
|
transitive = false
|
|
|
|
}
|
|
|
|
compile(project(':libs:elasticsearch-x-content')) {
|
|
|
|
transitive = false
|
|
|
|
}
|
|
|
|
compile(project(':libs:elasticsearch-geo')) {
|
|
|
|
transitive = false
|
|
|
|
}
|
|
|
|
compile project(':libs:elasticsearch-core')
|
|
|
|
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:${versions.jackson}"
|
|
|
|
runtime "com.fasterxml.jackson.core:jackson-core:${versions.jackson}"
|
|
|
|
testCompile project(":test:framework")
|
|
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
2018-01-18 09:33:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencyLicenses {
|
2019-11-14 06:01:23 -05:00
|
|
|
mapping from: /sql-proto.*/, to: 'elasticsearch'
|
|
|
|
mapping from: /sql-client.*/, to: 'elasticsearch'
|
|
|
|
mapping from: /jackson-.*/, to: 'jackson'
|
|
|
|
mapping from: /elasticsearch-core.*/, to: 'elasticsearch'
|
|
|
|
ignoreSha 'sql-proto'
|
|
|
|
ignoreSha 'sql-client'
|
|
|
|
ignoreSha 'elasticsearch'
|
2018-01-18 09:33:16 -05:00
|
|
|
}
|
|
|
|
|
2018-06-08 10:15:28 -04:00
|
|
|
shadowJar {
|
2019-11-14 06:01:23 -05:00
|
|
|
relocate 'com.fasterxml', 'org.elasticsearch.fasterxml'
|
|
|
|
}
|