Wouldn't it become ':multiProjC:projC1' then?

Op 8 okt 2010 17:58 schreef "richardm" <[email protected]
>:


Hi, Is it possible to have a multi-project within a multi-project?

I have a project layout similar to the following example:

build.gradle
settings.gradle
projA
projB
multiProjC
       - build.gradle
       - settings.gradle
       - projC1
       - projC2

projA depends on the multiProjC (which should compile and JAR projC1 and
projC2).  I can run /multiProjC/build.gradle but get an error running the
root build.gradle file:

A problem occurred evaluating project ':multiProjC'.
Cause: Project with path ':projC2' could not be found in project
':multiProjC'.

Is what I'm trying to do possible?  Have I just got the dependancies setup
wrong?

root settings.gradle
include 'projA', 'projB', 'multiProjC'

root build.gradle
apply plugin: 'java'

dependsOnChildren()

allprojects {
       sourceCompatibility = 1.6
       targetCompatibility = 1.6
}

sourceSets {
   test {
       java {
           srcDir 'tests'
       }
       resources {
           srcDir 'tests'
       }
       }
}

subprojects  {
       apply plugin: 'java'
       sourceSets.main.java.srcDir 'src'
}

project(':projA') {
 dependencies.compile project(':multiProjC')
}

project(':projB') {
 dependencies.compile project(':projA')
}

multiProjC/build.gradle
apply plugin: 'java'

dependsOnChildren()

allprojects {
       sourceCompatibility = 1.6
       targetCompatibility = 1.6
}

subprojects  {
       apply plugin: 'java'
}

project(':projC2') {
 dependencies.compile project(':projC1')
}

multiProjC/settings.gradle
include 'projC1', 'projC2'

--
View this message in context:
http://gradle.1045684.n5.nabble.com/multi-project-within-multi-project-tp3204941p3204941.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

Reply via email to