Skip to content

TIKA-2340 cleanup of direct dependencies / fix locale-dependent test case#171

Closed
user667 wants to merge 2 commits intoapache:masterfrom
user667:QA-Cleanup-of-direct-dependencies
Closed

TIKA-2340 cleanup of direct dependencies / fix locale-dependent test case#171
user667 wants to merge 2 commits intoapache:masterfrom
user667:QA-Cleanup-of-direct-dependencies

Conversation

@user667
Copy link

@user667 user667 commented Apr 25, 2017

This is an effort of dependency cleanup (with the help of mvn dependency:analyze and others). Not sure if this is acceptable without TIKA ticket number (or as such), I'll be glad to adjust this PR.

We've been updating to a recent (1.6-1.14) tika version lately and found a delta of +40libs/+20MB and went on to investigate. Turns out tika-parsers relies on a lot of transitive dependencies.

These commits try to specify (some) direct dependencies for libraries that are used in imports of parser classes. Additionally one of the test cases failed on my local setup with a non-default-English locale.

@grossws
Copy link
Member

grossws commented Apr 25, 2017

Thank you for contribution, @user667.

Could you please squash these commits excluding test fix and open separate PR for test fix?

Feel free use TIKA-2340 as tracking issue. I'll merge your patch after squashing.

user667 added 2 commits April 25, 2017 16:13
Add direct dependencies to
* 'org.apache.httpcomponents:httpcore/httpclient' in favor of
  'edu.ucar:httpservices'. Both libraries were not exclusively used
  by netcdf parsers and therefore should be provided by a direct
  dependency instead of relying on transitive deps.
* 'com.google.guava:guava'
* 'commons-lang:commons-lang'
  'org.apache.tika.parser.wordperfect.WPInputStream' requires
  string-utils otherwise scope could be set to 'test'.
* 'javax.ws.rs:javax.ws.rs-api'
@user667 user667 changed the title QA cleanup of direct dependencies / fix locale-dependent test case TIKA-2340 cleanup of direct dependencies / fix locale-dependent test case Apr 25, 2017
@user667
Copy link
Author

user667 commented Apr 26, 2017

BTW: This is just a small percentage of what should be added as direct dependencies. Unfortunately I don't know most of the parsers and the libraries they use and therefore cannot provide the rest of the list (see mvn dependency:analyze).

@user667 user667 closed this Dec 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants