You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Charles Grossman (JIRA)" <ji...@apache.org> on 2016/11/19 03:01:58 UTC

[jira] [Commented] (OAK-5124) How do i include jackrabbit oak as a dependency inside a build.gradle file? And then use it in your project?

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

Charles Grossman commented on OAK-5124:
---------------------------------------

also when i go here:
http://jackrabbit.apache.org/jcr/downloads.html#oak1.4

i cannot download any jars i get 404 errors.

why do i need both dependencies?
"Using Oak in your project
To use Oak in your project simply add a dependency to org.apache.jackrabbit:oak-jcr:1.0.0 and to javax.jcr:jcr:2.0:"

why is the download for jcr2.0 a jar but oak is src files i have to compile?




> How do i include jackrabbit oak as a dependency inside a build.gradle file? And then use it in your project?
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: OAK-5124
>                 URL: https://issues.apache.org/jira/browse/OAK-5124
>             Project: Jackrabbit Oak
>          Issue Type: Documentation
>          Components: examples
>    Affects Versions: 1.4.10
>            Reporter: Charles Grossman
>            Priority: Minor
>
> I've tried a few different things like
> buildscript {
>   repositories {
>     jcenter()
>     mavenCentral()
>   }
>   dependencies {
>      
>     classpath 'org.apache.jackrabbit:oak-jcr:1.0.0'
>     classpath 'javax.jcr:jcr:2.0'
>   }
> }
> //these fail
> apply plugin: 'org.apache.jackrabbit:oak-jcr:1.0.0'
> apply plugin: 'javax.jcr:jcr:2.0'
> repositories {
>   jcenter()
>    mavenCentral()
> }
> but not really sure if this is the right idea at all.
> Does anyone have some github examples or have done any work with Gradle and jackrabbit Oak?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)