2018-01-18 09:33:16 -05:00
|
|
|
apply plugin: 'elasticsearch.build'
|
2020-05-14 21:56:59 -04: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 16:23:55 -04:00
|
|
|
tasks.named('forbiddenApisMain').configure {
|
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 {
|
2020-06-30 09:57:41 -04:00
|
|
|
api(xpackProject('plugin:sql:sql-client')) {
|
2019-11-14 06:01:23 -05:00
|
|
|
transitive = false
|
|
|
|
}
|
2020-06-30 09:57:41 -04:00
|
|
|
api(xpackProject('plugin:sql:sql-proto')) {
|
2019-11-14 06:01:23 -05:00
|
|
|
transitive = false
|
|
|
|
}
|
2020-06-30 09:57:41 -04:00
|
|
|
api(project(':libs:elasticsearch-x-content')) {
|
2019-11-14 06:01:23 -05:00
|
|
|
transitive = false
|
|
|
|
}
|
2020-06-30 09:57:41 -04:00
|
|
|
api(project(':libs:elasticsearch-geo')) {
|
2019-11-14 06:01:23 -05:00
|
|
|
transitive = false
|
|
|
|
}
|
2020-06-30 09:57:41 -04:00
|
|
|
api project(':libs:elasticsearch-core')
|
|
|
|
api "com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:${versions.jackson}"
|
2020-07-07 11:10:31 -04:00
|
|
|
runtimeOnly "com.fasterxml.jackson.core:jackson-core:${versions.jackson}"
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(":test:framework")
|
|
|
|
testImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
2018-01-18 09:33:16 -05:00
|
|
|
}
|
|
|
|
|
2020-06-18 02:15:50 -04:00
|
|
|
tasks.named("dependencyLicenses").configure {
|
2019-11-14 06:01:23 -05: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 06:01:23 -05:00
|
|
|
relocate 'com.fasterxml', 'org.elasticsearch.fasterxml'
|
|
|
|
}
|
2020-03-17 13:26:35 -04:00
|
|
|
|
|
|
|
thirdPartyAudit.ignoreMissingClasses(
|
|
|
|
'com.fasterxml.jackson.databind.ObjectMapper',
|
|
|
|
'com.fasterxml.jackson.databind.cfg.MapperBuilder'
|
|
|
|
)
|