John Midgley created TIKA-3597:
----------------------------------
Summary: Tika Does Not Work As Documented in Gradle Project
Key: TIKA-3597
URL: https://issues.apache.org/jira/browse/TIKA-3597
Project: Tika
Issue Type: Bug
Components: documentation
Affects Versions: 2.1.0
Environment: This issue has been reproduced in IntelliJ, both using
Groovy Gradle and the Kotlin DSL.
------------------------------------------------------------
Gradle 7.1
------------------------------------------------------------
Build time: 2021-06-14 14:47:26 UTC
Revision: 989ccc9952b140ee6ab88870e8a12f1b2998369e
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 1.8.0_312 (Azul Systems, Inc. 25.312-b07)
OS: Mac OS X 10.16 x86_64
Reporter: John Midgley
The [documentation|https://tika.apache.org/2.1.0/gettingstarted.html] indicates
that you can use Tika in a Gradle project by including
{{dependencies \{ runtime 'org.apache.tika:tika-parsers:2.0.0' }}}
(as an aside, {{runtime}} has been replaced by {{implementation)}}
The main problem is that Gradle pulls in no jars from this line at all. Looking
around, this
[post|https://stackoverflow.com/questions/36057574/how-to-add-a-maven-project-as-a-gradle-dependency]
from stack overflow indicates that you can't directly include multi-module
projects using Gradle. The only way I could get things to partially work is to
wind through all the dependencies and directly include the lowest level jars,
which is onerous and not robust to any changes in project structure.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)