2018-01-18 11:15:02 -05:00
|
|
|
/*
|
2018-06-28 08:56:16 -04:00
|
|
|
* The minimal dependencies REST-based SQL client that is used by CLI and JDBC
|
2018-01-18 11:15:02 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
apply plugin: 'elasticsearch.build'
|
|
|
|
|
|
|
|
description = 'Code shared between jdbc and cli'
|
|
|
|
|
|
|
|
dependencies {
|
2019-11-14 06:01:23 -05:00
|
|
|
compile xpackProject('plugin:sql:sql-proto')
|
|
|
|
compile "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 11:15:02 -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 11:15:02 -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 11:15:02 -05:00
|
|
|
}
|
|
|
|
|
2020-04-15 16:23:55 -04:00
|
|
|
tasks.named('forbiddenApisTest').configure {
|
2019-11-14 06:01:23 -05:00
|
|
|
bundledSignatures -= 'jdk-non-portable'
|
|
|
|
bundledSignatures += 'jdk-internal'
|
2018-01-18 11:15:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
forbiddenPatterns {
|
2019-11-14 06:01:23 -05:00
|
|
|
exclude '**/*.keystore'
|
2018-01-18 11:15:02 -05:00
|
|
|
}
|