Skip to content

Commit

Permalink
Upgraded Tika and xmlbeans libraries
Browse files Browse the repository at this point in the history
Tika libraries have been upgraded from 2.2.1 to 2.3.0. xmlbeans is now a subproject of POI, so POI was upgraded from 4.1.2 to 5.2.2. With POI 5.x the ooxml-schemas library has been moved to ooxml-lite/ooxml-full. Since ooxml-schemas no longer exists, the LICENSE and NOTICE files in the licenses/ directory have been removed. Finally, xmlbeans has been updated from 3.1.0 to 5.0.2

Signed-off-by: Kartik Ganesh <[email protected]>
  • Loading branch information
kartg committed May 3, 2022
1 parent 246a885 commit 138335b
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 497 deletions.
9 changes: 5 additions & 4 deletions plugins/ingest-attachment/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ opensearchplugin {
}

versions << [
'tika' : '2.2.1',
'tika' : '2.3.0',
'pdfbox': '2.0.25',
'poi' : '4.1.2',
'poi' : '5.2.2',
'mime4j': '0.8.3'
]

Expand Down Expand Up @@ -70,9 +70,9 @@ dependencies {
// OpenOffice
api "org.apache.poi:poi-ooxml:${versions.poi}"
api "org.apache.poi:poi:${versions.poi}"
api "org.apache.poi:poi-ooxml-schemas:${versions.poi}"
api "org.apache.poi:poi-ooxml-lite:${versions.poi}"
api "commons-codec:commons-codec:${versions.commonscodec}"
api 'org.apache.xmlbeans:xmlbeans:3.1.0'
api 'org.apache.xmlbeans:xmlbeans:5.0.2'
api 'org.apache.commons:commons-collections4:4.1'
// MS Office
api "org.apache.poi:poi-scratchpad:${versions.poi}"
Expand All @@ -98,6 +98,7 @@ restResources {
tasks.named("dependencyLicenses").configure {
mapping from: /apache-mime4j-.*/, to: 'apache-mime4j'
mapping from: /tika-parsers-.*/, to: 'tika-parsers'
mapping from: /poi-ooxml-.*/, to: 'poi-ooxml'
}

forbiddenPatterns {
Expand Down
1 change: 0 additions & 1 deletion plugins/ingest-attachment/licenses/poi-4.1.2.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions plugins/ingest-attachment/licenses/poi-5.2.2.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5513d31545085c33809c4b6553c2009fd19a6016

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a201b5bdc92c0fae4bed4b8e5546388c4c2f9eb0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5df31b69375131fc2163a5557093cb112be90ce1

This file was deleted.

463 changes: 0 additions & 463 deletions plugins/ingest-attachment/licenses/poi-ooxml-schemas-LICENSE.txt

This file was deleted.

23 changes: 0 additions & 23 deletions plugins/ingest-attachment/licenses/poi-ooxml-schemas-NOTICE.txt

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8c5cd5f1b3e7b3656ab983b73bbbf8bf5f14f793

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaed656e1acf142da412d468405038104c0cf38b

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7be308dc50787ae8b8c242539be8f9ed1a23eba6
1 change: 0 additions & 1 deletion plugins/ingest-attachment/licenses/xmlbeans-3.1.0.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions plugins/ingest-attachment/licenses/xmlbeans-5.0.2.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ac85f740e3492e28662cf5595d67113ffadc547d

0 comments on commit 138335b

Please sign in to comment.