2018-01-18 09:33:16 -05:00
|
|
|
apply plugin: 'elasticsearch.build'
|
2020-05-14 18:56:59 -07:00
|
|
|
apply plugin: 'elasticsearch.publish'
|
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
|
|
|
|
2020-04-15 13:23:55 -07:00
|
|
|
tasks.named('forbiddenApisMain').configure {
|
2019-11-14 11:01:23 +00: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 11:01:23 +00: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}"
|
2020-06-14 22:30:44 +02:00
|
|
|
testImplementation project(":test:framework")
|
|
|
|
testImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
2018-01-18 09:33:16 -05:00
|
|
|
}
|
|
|
|
|
2020-06-18 08:15:50 +02:00
|
|
|
tasks.named("dependencyLicenses").configure {
|
2019-11-14 11:01:23 +00:00
|
|
|
mapping from: /jackson-.*/, to: 'jackson'
|
2018-01-18 09:33:16 -05:00
|
|
|
}
|
|
|
|
|
2018-06-08 10:15:28 -04:00
|
|
|
shadowJar {
|
2019-11-14 11:01:23 +00:00
|
|
|
relocate 'com.fasterxml', 'org.elasticsearch.fasterxml'
|
|
|
|
}
|
2020-03-17 10:26:35 -07:00
|
|
|
|
|
|
|
thirdPartyAudit.ignoreMissingClasses(
|
|
|
|
'com.fasterxml.jackson.databind.ObjectMapper',
|
|
|
|
'com.fasterxml.jackson.databind.cfg.MapperBuilder'
|
|
|
|
)
|