elx/elx-api/build.gradle
2019-05-02 19:46:21 +02:00

20 lines
No EOL
1.2 KiB
Groovy

dependencies {
compile "org.xbib:metrics-common:${project.property('xbib-metrics.version')}"
compile("org.elasticsearch:elasticsearch:${project.property('elasticsearch.version')}") {
// exclude original ES jackson yaml, cbor, smile version (2.6.2)
exclude group: 'com.fasterxml.jackson.dataformat'
// these dependencies that are not meant for client applications
exclude module: 'securesm'
// we use log4j2, not log4j
exclude group: 'log4j'
}
// override log4j2 of Elastic with ours
compile "org.apache.logging.log4j:log4j-core:${project.property('log4j.version')}"
// override ES jackson with our jackson version
// for Elasticsearch session, ES uses SMILE when encoding source for SearchRequest
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-smile:${project.property('jackson.version')}"
// CBOR ist default JSON content compression encoding in ES 2.2.1
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:${project.property('jackson.version')}"
// not used, but maybe in other projects
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${project.property('jackson.version')}"
}