You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (Jira)" <ji...@apache.org> on 2021/11/22 19:45:00 UTC

[jira] [Commented] (TIKA-3597) Tika Does Not Work As Documented in Gradle Project

    [ https://issues.apache.org/jira/browse/TIKA-3597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17447590#comment-17447590 ] 

Tim Allison commented on TIKA-3597:
-----------------------------------

Thank you for identifying this problem and raising this issue.  I think I've updated that page for 2.x now.  Please give it a try and let us know.

Basically, it should work if you bring in tika-parsers-standard-package...

> 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
>            Priority: Major
>
> 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)