Hi One problem you might encounter with the eclipse files generated by gradle for multiprojects is that they do not set the "exported" to be true. So if you have transitive dependencies, you need to manually export each jar or src directory in each project's properties -> java build path -> Order and Export so that eclipse finds all needed dependencies.
There is an issue for this in jira: http://jira.codehaus.org/browse/GRADLE-644 that has a patch to fix this, but is not yet applied to trunk. Philip On Fri, Jan 22, 2010 at 3:30 AM, MartyMcFly <[email protected]> wrote: > > Thanks Adam... > > the build and eclipse preparation is working with your code. > > Thanks ! > > > MartyMcFly wrote: >> >> Hi, >> >> I do have problems with the concept of multiproject layout. >> >> As far as I understood it is defined by a hierarichal structure >> >> SuperProject >> -- subproject1 >> -- subproject2 >> >> when I create the settings.gradle and the build.gradle in SuperProject >> with >> >> allprojects { >> task hello << { task -> println "I'm $task.project.name"} >> } >> >> and run it i get the output from all projects (super and subprojects) >> >> now I want to build the subprojects. They all have their java sources in a >> 'src' folder.. so my idea was >> >> usePlugin 'java' >> sourceSets.main.java.srcDir 'src' >> >> but this doesnt compile any source in the subprojects... do I need a >> build.gradle for each subproject ? what does it look like ? >> >> If I run it with the -d flag i do get some information which show that the >> subprojects are considered >> >> [main] INFO org.gradle.Main - Included projects: [root project >> 'superproject', project ':subproject1'] >> >> So how does the build file structure has to look like that I can build all >> subprojects (which of course compile in their specific ouput folder and >> build only their jar) ? >> >> Thanks in advance (again) >> >> > > -- > View this message in context: > http://old.nabble.com/Multi-Projects-...-Build-and-Eclipse-tp27259790p27270011.html > Sent from the gradle-user mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
