Repository navigation
Bump dependencies and upgrade to Tika 4.1.0 #8141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0f113d1
Bump dependencies
labkey-adam b6e8fb6
Deprecate PostgreSQL 14.x
labkey-adam 8741c42
Upgrade Tika 3.3.2 -> 4.1.0
labkey-adam 7ca97b7
Add parsing support and testing for eml and sas7bdat files
labkey-adam 46b9eed
Extract properties for all remaining hard-coded versions
labkey-adam e4f0837
Exclude parsers we don't want to prevent warning logging
labkey-adam 2112c8e
Update comments
labkey-adam f0e3d85
Share the DefaultDetector
labkey-adam da5b1a5
Update comments
labkey-adam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,13 @@ plugins { | |
| id 'org.labkey.build.module' | ||
| } | ||
|
|
||
| ext.mime4jVersion="0.8.14" | ||
| // Sync with versions in Tika's parent POM when upgrading tikaVersion | ||
| ext.commonsCsvVersion="1.14.1" | ||
| ext.ddPlistVersion="1.30" | ||
| ext.jhighlightVersion="2.0.0" | ||
| ext.metadataExtractorVersion="2.21.0" | ||
| ext.mime4jVersion="0.8.15" | ||
| ext.parsoVersion="2.0.14" | ||
|
|
||
| dependencies { | ||
| BuildUtils.addExternalDependency( | ||
|
|
@@ -272,9 +278,106 @@ dependencies { | |
| } | ||
| ) | ||
|
|
||
| BuildUtils.addExternalDependency( | ||
| project, | ||
| new ExternalDependency( | ||
| "org.apache.tika:tika-parser-datauri-commons:${tikaVersion}", | ||
| "Tika", | ||
| "Apache", | ||
| "http://lucene.apache.org/tika/", | ||
| ExternalDependency.APACHE_2_LICENSE_NAME, | ||
| ExternalDependency.APACHE_2_LICENSE_URL, | ||
| "Data URI support for HTML and text parsers" | ||
| ), | ||
| { | ||
| transitive = false | ||
| } | ||
| ) | ||
|
|
||
| // TODO Tika 4.2.0: no Tika module uses mail-commons anymore (https://issues.apache.org/jira/browse/TIKA-4917), so remove this dependency if that holds in the release | ||
| BuildUtils.addExternalDependency( | ||
| project, | ||
| new ExternalDependency( | ||
| "org.apache.tika:tika-parser-mail-commons:${tikaVersion}", | ||
| "Tika", | ||
| "Apache", | ||
| "http://lucene.apache.org/tika/", | ||
| ExternalDependency.APACHE_2_LICENSE_NAME, | ||
| ExternalDependency.APACHE_2_LICENSE_URL, | ||
| "Email utilities used by the .eml and .mbox parsers" | ||
| ), | ||
| { | ||
| transitive = false | ||
| } | ||
| ) | ||
|
|
||
| BuildUtils.addExternalDependency( | ||
| project, | ||
| new ExternalDependency( | ||
| "org.apache.tika:tika-parser-mail-module:${tikaVersion}", | ||
| "Tika", | ||
| "Apache", | ||
| "http://lucene.apache.org/tika/", | ||
| ExternalDependency.APACHE_2_LICENSE_NAME, | ||
| ExternalDependency.APACHE_2_LICENSE_URL, | ||
| "Parser adapters for .eml and .mbox email formats" | ||
| ), | ||
| { | ||
| transitive = false | ||
| } | ||
| ) | ||
|
|
||
| BuildUtils.addExternalDependency( | ||
| project, | ||
| new ExternalDependency( | ||
| "org.apache.tika:tika-encoding-detector-html:${tikaVersion}", | ||
| "Tika", | ||
| "Apache", | ||
| "http://lucene.apache.org/tika/", | ||
| ExternalDependency.APACHE_2_LICENSE_NAME, | ||
| ExternalDependency.APACHE_2_LICENSE_URL, | ||
| "Character encoding detection from HTML meta tags" | ||
| ), | ||
| { | ||
| transitive = false | ||
| } | ||
| ) | ||
|
|
||
| BuildUtils.addExternalDependency( | ||
| project, | ||
| new ExternalDependency( | ||
| "org.apache.tika:tika-encoding-detector-mojibuster:${tikaVersion}", | ||
| "Tika", | ||
| "Apache", | ||
| "http://lucene.apache.org/tika/", | ||
| ExternalDependency.APACHE_2_LICENSE_NAME, | ||
| ExternalDependency.APACHE_2_LICENSE_URL, | ||
| "Statistical character encoding detection for text files" | ||
| ), | ||
| { | ||
| transitive = false | ||
| } | ||
| ) | ||
|
|
||
| BuildUtils.addExternalDependency( | ||
| project, | ||
| new ExternalDependency( | ||
| "org.apache.tika:tika-ml-core:${tikaVersion}", | ||
| "Tika", | ||
| "Apache", | ||
| "http://lucene.apache.org/tika/", | ||
| ExternalDependency.APACHE_2_LICENSE_NAME, | ||
| ExternalDependency.APACHE_2_LICENSE_URL, | ||
| "Model support for Tika's statistical encoding detector" | ||
| ), | ||
| { | ||
| transitive = false | ||
| } | ||
| ) | ||
|
|
||
| // Additional parsing libraries (beyond POI, PDFBox, etc., which are already included in API) that we | ||
| // care about. Adjust these dependencies and versions whenever we upgrade Tika. Or if we want to add or remove a parser. | ||
| // See also tikaConfig.xml to exclude specific parsers or detectors. | ||
| // See also the LuceneSearchServiceImpl constructor to exclude specific parsers or detectors. | ||
| BuildUtils.addExternalDependency( | ||
| project, | ||
| new ExternalDependency( | ||
|
|
@@ -304,26 +407,26 @@ dependencies { | |
| BuildUtils.addExternalDependency( | ||
| project, | ||
| new ExternalDependency( | ||
| "org.apache.pdfbox:jempbox:1.8.17", | ||
| "jempbox", | ||
| "Apache", | ||
| "https://pdfbox.apache.org/2.0/dependencies.html", | ||
| "com.drewnoakes:metadata-extractor:${metadataExtractorVersion}", | ||
| "Metadata Extractor", | ||
| "drewnoakes", | ||
| "https://github.com/drewnoakes/metadata-extractor", | ||
| ExternalDependency.APACHE_2_LICENSE_NAME, | ||
| ExternalDependency.APACHE_2_LICENSE_URL, | ||
| "PDFBox dependency" | ||
| "Parsers that read metadata from image files" | ||
| ) | ||
| ) | ||
|
|
||
| BuildUtils.addExternalDependency( | ||
| project, | ||
| new ExternalDependency( | ||
| "com.drewnoakes:metadata-extractor:2.21.0", | ||
| "Metadata Extractor", | ||
| "drewnoakes", | ||
| "https://github.com/drewnoakes/metadata-extractor", | ||
| "com.epam:parso:${parsoVersion}", | ||
| "Parso", | ||
| "EPAM", | ||
| "https://github.com/epam/parso", | ||
| ExternalDependency.APACHE_2_LICENSE_NAME, | ||
| ExternalDependency.APACHE_2_LICENSE_URL, | ||
| "Parsers that read metadata from image files" | ||
| "Parser for SAS .sas7bdat datasets" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there demand for this? |
||
| ) | ||
| ) | ||
|
|
||
|
|
@@ -343,7 +446,7 @@ dependencies { | |
| BuildUtils.addExternalDependency( | ||
| project, | ||
| new ExternalDependency( | ||
| "org.codelibs:jhighlight:2.0.0", | ||
| "org.codelibs:jhighlight:${jhighlightVersion}", | ||
| "JHighlight", | ||
| "codelibs", | ||
| "https://github.com/codelibs/jhighlight", | ||
|
|
@@ -356,7 +459,7 @@ dependencies { | |
| BuildUtils.addExternalDependency( | ||
| project, | ||
| new ExternalDependency( | ||
| "org.apache.commons:commons-csv:1.14.1", | ||
| "org.apache.commons:commons-csv:${commonsCsvVersion}", | ||
| "Commons CSV ™", | ||
| "Apache", | ||
| "http://commons.apache.org/proper/commons-csv/", | ||
|
|
@@ -421,7 +524,7 @@ dependencies { | |
| BuildUtils.addExternalDependency( | ||
| project, | ||
| new ExternalDependency( | ||
| "com.googlecode.plist:dd-plist:1.30", | ||
| "com.googlecode.plist:dd-plist:${ddPlistVersion}", | ||
| "DD Plist", | ||
| "com.dd.plist", | ||
| "https://github.com/3breadt/dd-plist", | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there demand for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't heard huge demand for either new format. But they were easy and cheap to add. Some clients use SAS and all clients use email, so 🤷 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be interesting to add metrics for file types we don't index because we don't recognize them.