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 {
|
2018-06-28 08:56:16 -04:00
|
|
|
compile xpackProject('plugin:sql:sql-proto')
|
2018-01-18 11:15:02 -05:00
|
|
|
compile "com.fasterxml.jackson.core:jackson-core:${versions.jackson}"
|
2019-06-04 16:50:23 -04:00
|
|
|
testCompile project(":test:framework")
|
2018-01-18 11:15:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencyLicenses {
|
|
|
|
mapping from: /jackson-.*/, to: 'jackson'
|
2018-06-28 08:56:16 -04:00
|
|
|
mapping from: /sql-proto.*/, to: 'elasticsearch'
|
2018-01-18 11:15:02 -05:00
|
|
|
mapping from: /elasticsearch-cli.*/, to: 'elasticsearch'
|
|
|
|
mapping from: /elasticsearch-core.*/, to: 'elasticsearch'
|
|
|
|
ignoreSha 'elasticsearch-core'
|
|
|
|
}
|
|
|
|
|
|
|
|
forbiddenApisMain {
|
|
|
|
// does not depend on core, so only jdk and http signatures should be checked
|
2018-08-22 02:05:22 -04:00
|
|
|
replaceSignatureFiles 'jdk-signatures'
|
2018-01-18 11:15:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
forbiddenApisTest {
|
|
|
|
bundledSignatures -= 'jdk-non-portable'
|
|
|
|
bundledSignatures += 'jdk-internal'
|
|
|
|
}
|
|
|
|
|
|
|
|
forbiddenPatterns {
|
|
|
|
exclude '**/*.keystore'
|
|
|
|
}
|
|
|
|
|
|
|
|
// Allow for com.sun.net.httpserver.* usage for testing
|
|
|
|
eclipse {
|
|
|
|
classpath.file {
|
|
|
|
whenMerged { cp ->
|
|
|
|
def con = entries.find { e ->
|
|
|
|
e.kind == "con" && e.toString().contains("org.eclipse.jdt.launching.JRE_CONTAINER")
|
|
|
|
}
|
|
|
|
con.accessRules.add(new org.gradle.plugins.ide.eclipse.model.AccessRule(
|
|
|
|
"accessible", "com/sun/net/httpserver/*"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|