On 23/07/10 4:00 AM, Potje rode kool wrote:
Looks like I fixed it. I appended -SNAPSHOT to the version number.
But one thing I see is that the dependency (platonos-common) is
downloaded first and after that it gets installed in my .m2 folder.
platonos-dao depends on platonos common. I would expected that gradle
should run first all the tasks of platonos-common before
running the tasks from platonos-dao. Is there a way to make gradle
work like this?
I suspect you've configured your build in an unusual way, and Gradle is
getting confused. Could you provide some snippets from your build files
where you declare the dependencies and repositories? Then we can see if
there's a way to structure them so they work better, and whether we need
to fix anything in Gradle.
C:\Users\Evert\projects\platonos\projects\platonos-dao>gradle clean
compileJava install
:platonos-common:clean
:platonos-dao:clean
:platonos-common:compileJava
:platonos-common:processResources
:platonos-common:classes
:platonos-common:jar
:platonos-dao:compileJava
Download
file:/C:/Users/Evert/.m2/repository/org/platonos/platonos-common/0.1-SN
APSHOT/platonos-common-0.1-SNAPSHOT.pom
Download
file:/C:/Users/Evert/.m2/repository/org/platonos/platonos-common/0.1-SN
APSHOT/platonos-common-0.1-SNAPSHOT.jar
:platonos-common:install
:platonos-dao:processResources UP-TO-DATE
:platonos-dao:classes
:platonos-dao:jar
:platonos-dao:install
BUILD SUCCESSFUL
2010/7/22 Adam Murdoch <[email protected] <mailto:[email protected]>>
On 21/07/10 6:28 AM, Potje rode kool wrote:
I am trying to build a multiproject but I got some problems.
I have a core project that contains things like dao and
service classes, another project web depends on core.
When I change something in my core project and I call: gradle
clean install war, the web project doesn't get the new jar
from the core project.
Could you provide a snippet from your web project's build file
where you're declaring the dependency and repositories?
--
Adam Murdoch
Gradle Developer
http://www.gradle.org <http://www.gradle.org/>
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz <http://www.gradle.biz/>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz