mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-13 08:25:26 +00:00
29b70733ae
Currently forbidden apis accounts for 800+ tasks in the build. These tasks are aggressively created by the plugin. In forbidden apis 3.0, we will get task avoidance (https://github.com/policeman-tools/forbidden-apis/pull/162), but we need to ourselves use the same task avoidance mechanisms to not trigger these task creations. This commit does that for our foribdden apis usages, in preparation for upgrading to 3.0 when it is released.
51 lines
1.5 KiB
Groovy
51 lines
1.5 KiB
Groovy
apply plugin: 'elasticsearch.build'
|
|
apply plugin: 'nebula.maven-base-publish'
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
description = 'JDBC driver for Elasticsearch'
|
|
archivesBaseName = "x-pack-sql-jdbc"
|
|
|
|
tasks.named('forbiddenApisMain').configure {
|
|
// does not depend on core, so only jdk and http signatures should be checked
|
|
replaceSignatureFiles 'jdk-signatures'
|
|
}
|
|
|
|
dependencies {
|
|
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')
|
|
}
|
|
|
|
dependencyLicenses {
|
|
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'
|
|
}
|
|
|
|
shadowJar {
|
|
relocate 'com.fasterxml', 'org.elasticsearch.fasterxml'
|
|
}
|
|
|
|
thirdPartyAudit.ignoreMissingClasses(
|
|
'com.fasterxml.jackson.databind.ObjectMapper',
|
|
'com.fasterxml.jackson.databind.cfg.MapperBuilder'
|
|
)
|