java - Depend on gradle project using ivy -


i'm working on web app, using jpa, hibernate , ivy dependency management.

adding dependency hibernate maven repo straightforward, need modify hibernate source, rebuild , add own fork dependency.

the problem hibernate use gradle. managed build (gradlew clean build), , have jars in each hibernate sub project (hibernate-entitymanager, hibernate-core, etc ).

my project right depend on other projects in workspace, these use ivy, , can add them dependency no trouble (using resolve in workspace feature). can't figure out how import hibernate...

(i'm not sure how manage hibernate fork... in project i've forked i've configured ivy (also forked project use ivy) use branch, way i'm sure resolve fork , not original project, hibernate use gradle...so can't use branch)

aproject/ivy.xml

<info     organisation="it.example"     module="aproject"     branch="myfork"     status="integration"> </info> 

myproject/ivy.xml

<dependency org="it.example" name="aproject" branch="myfork" rev="latest.integration" conf="runtime->default"/> 

can suggest me solution? (or point me right way ?)

i've followed casey advice (thank casey) , modify gradle script publish repo. (in local repo since error trying publish on local network one, problem)

here's i've done: in build.gradle:

    uploadarchives {         repositories.mavendeployer {             name = 'localdeployer'             configuration = configurations.deployerjars             pom.project pomconfig             repository(url: "file://c:/users/<myusername>/.m2/local/")         }     } 

(i not able use property ${user.home}, if know how should gently edit this)

in ivysettings.xml

<resolvers>     <filesystem name="local-maven-2" m2compatible="true"         local="true">         <artifact pattern="${user.home}/.m2/local/[organisation]/[module]/[revision]/[module]-[revision].[ext]" />         <ivy pattern="${user.home}/.m2/local/[organisation]/[module]/[revision]/[module]-[revision].pom" />     </filesystem> </resolvers> 

the rest straightforward, need edit hibernate (or forked library) version state custom 1 (eg. 4.2.3 -> 4.2.3-lelmarir) , use in ivy dependency


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -