Thanks for the answers Hans.
As promissed, I created a page inside the examples section of Gradle's 
Confluence. I cover there not only the Maven deploy part, but also environment 
configuration, which I started to speak about earlier this year.
For all of you who are interested in the problems raised by this topic, please 
have a look here for some answers:
http://docs.codehaus.org/display/GRADLE/complete+example+-+environment+managment+and+maven+deploy
 
 
But of course you're not gonna get out of here so easily as I have some other 
questions :) (most of them raised as TODOs in the previous link). I'll try to 
ask only the ones that would take me too long dig for, and I'll update the WIKI 
with the answer I get from myself eventually.
 
1) any SVN plugin? Anyway to Gradelly commit, tag or even branch something?
2) Anyway to change the project version number from the command line?
3) disable the disabling of tests. Meaning that skipping the tests would NOT be 
possible when running some definite tasks?
 
4) I noticed some behaviour with my multiproject tasks.
Here's roughly the structure:
ROOT/
    SERVICE/
    WEB-LAYER/
        WAR-PROJECT/
 
WEB-LAYER is not a project, just a folder containing projects. When I run at 
the root "$gradle release", then the output would be:
:RASFF-core:compileJava
:RASFF-core:bind
[ant:echo] Binding with jibx...
:RASFF-core:processResources
:RASFF-core:classes
:RASFF-core:jar
:RASFF-core:uploadDefaultInternal
:RASFF-core:uploadArchives
:RASFF-core:release
:RASFF-web:compileJava  ???????
:RASFF-web:processResources  ????????
:RASFF-web:classes  ??????????
:RASFF-web:jar SKIPPED ?????????
:RASFF-web:uploadArchives SKIPPED ???????
:RASFF-web:release ?????????
:RASFF-web:RASFF-web:compileJava
:RASFF-web:RASFF-web:processResources
:RASFF-web:RASFF-web:classes
:RASFF-web:RASFF-web:initConfiguration
no environment specified, skipping.
:RASFF-web:RASFF-web:war
version is: 2.2.0.DEV13-BUILD-6-SNAPSHOT
:RASFF-web:RASFF-web:uploadArchives
:RASFF-web:RASFF-web:release
 
As you see, I had to manually disable the 'RASFF-web' tasks. Why would Gradle 
run the tasks though I never declared RASFF-web as a project? This is not a 
blocker since I disabled the tasks, just a question of mine.
 
Thanks for your help,
Erwan

Reply via email to