From e907d89966f7ecf4f15afc2e564653123d06463c Mon Sep 17 00:00:00 2001 From: Joe Gallo Date: Mon, 13 Feb 2023 15:41:33 -0500 Subject: [PATCH] ingest-attachment module tika dependency versions (#93755) --- docs/changelog/93755.yaml | 5 +++ gradle/verification-metadata.xml | 56 +++++++++++++++++--------- modules/ingest-attachment/build.gradle | 24 ++++++----- 3 files changed, 57 insertions(+), 28 deletions(-) create mode 100644 docs/changelog/93755.yaml diff --git a/docs/changelog/93755.yaml b/docs/changelog/93755.yaml new file mode 100644 index 000000000000..03a63bc18e69 --- /dev/null +++ b/docs/changelog/93755.yaml @@ -0,0 +1,5 @@ +pr: 93755 +summary: Ingest-attachment module tika dependency versions +area: Ingest Node +type: bug +issues: [] diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index b2683949fb79..fdec6cfd8ef5 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -1573,9 +1573,9 @@ - - - + + + @@ -1588,6 +1588,11 @@ + + + + + @@ -1613,6 +1618,11 @@ + + + + + @@ -2536,24 +2546,24 @@ - - - + + + - - - + + + - - - + + + - - - + + + @@ -2636,9 +2646,9 @@ - - - + + + @@ -3484,6 +3494,11 @@ + + + + + @@ -3539,6 +3554,11 @@ + + + + + diff --git a/modules/ingest-attachment/build.gradle b/modules/ingest-attachment/build.gradle index 36dfd027cd81..542e9cd3986e 100644 --- a/modules/ingest-attachment/build.gradle +++ b/modules/ingest-attachment/build.gradle @@ -15,14 +15,20 @@ esplugin { classname 'org.elasticsearch.ingest.attachment.IngestAttachmentPlugin' } -versions << [ +// this overwrites the 'versions' map from Elasticsearch itself, but indeed we want that -- we're interested in managing our dependencies +// as we (and tika) demand, and are not interested in, say, having the same version of commons-codec as elasticsearch itself +def versions = [ 'tika' : '2.6.0', 'pdfbox': '2.0.27', - 'poi' : '5.2.2', + 'poi' : '5.2.3', 'mime4j': '0.8.5' ] dependencies { + // logging + api "org.slf4j:slf4j-api:2.0.3" + api "commons-logging:commons-logging:1.2" + // mandatory for tika api "org.apache.tika:tika-core:${versions.tika}" api "org.apache.tika:tika-langdetect:${versions.tika}" @@ -36,9 +42,8 @@ dependencies { api "org.apache.tika:tika-parser-apple-module:${versions.tika}" api "org.apache.tika:tika-parser-xmp-commons:${versions.tika}" api "org.apache.tika:tika-parser-zip-commons:${versions.tika}" - api 'org.tukaani:xz:1.8' + api 'org.tukaani:xz:1.9' api 'commons-io:commons-io:2.11.0' - api "org.slf4j:slf4j-api:${versions.slf4j}" // character set detection api 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3' @@ -50,23 +55,22 @@ dependencies { api "org.apache.pdfbox:pdfbox:${versions.pdfbox}" api "org.apache.pdfbox:fontbox:${versions.pdfbox}" api "org.apache.pdfbox:jempbox:1.8.17" - api "commons-logging:commons-logging:${versions.commonslogging}" // OpenOffice api "org.apache.poi:poi-ooxml:${versions.poi}" api "org.apache.poi:poi-ooxml-lite:${versions.poi}" api "org.apache.poi:poi:${versions.poi}" - api "commons-codec:commons-codec:${versions.commonscodec}" - api 'org.apache.xmlbeans:xmlbeans:5.0.3' - api 'org.apache.commons:commons-collections4:4.1' + api "commons-codec:commons-codec:1.15" + api 'org.apache.xmlbeans:xmlbeans:5.1.1' + api 'org.apache.commons:commons-collections4:4.4' // MS Office api "org.apache.poi:poi-scratchpad:${versions.poi}" // Apple iWork - api 'org.apache.commons:commons-compress:1.21' + api 'org.apache.commons:commons-compress:1.22' // Outlook documents api "org.apache.james:apache-mime4j-core:${versions.mime4j}" api "org.apache.james:apache-mime4j-dom:${versions.mime4j}" // EPUB books - api "org.apache.commons:commons-lang3:${versions.commons_lang3}" + api "org.apache.commons:commons-lang3:3.12.0" // Microsoft Word files with visio diagrams api 'org.apache.commons:commons-math3:3.6.1' // POIs dependency