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 "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2016/11/19 11:15:58 UTC

[jira] [Comment Edited] (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=15679071#comment-15679071 ] 

Alex Parvulescu edited comment on OAK-5124 at 11/19/16 11:15 AM:
-----------------------------------------------------------------

[~Falling] here's a quick example I put together using gradle and a simple unit test I took from oak-jcr [0], based on this gradle tutorial [1].
I'm not sure what your end goal is, but if you have the choice I would advise to stick with maven, as there are a lot more chances people will provide help if you are closer to the tools everyone uses. Also, for more help getting started I think it would be best to reach out to the mailing list directly instead of opening Jira doc issues. hope this helps!

[0] https://github.com/stillalex/oak-gradle-example
[1] https://docs.gradle.org/current/userguide/tutorial_java_projects.html


was (Author: alex.parvulescu):
[~Falling] here's a quick example I put together using gradle and a simple unit test I took from oak-jcr. [0]
I'm not sure what your end goal is, but if you have the choice I would advise to stick with maven, as there are a lot more chances people will provide help if you are closer to the tools everyone uses. Also, for more help getting started I think it would be best to reach out to the mailing list directly instead of opening Jira doc issues. hope this helps!

[0] https://github.com/stillalex/oak-gradle-example

> 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)