Nested settings.gradle are not supported at the moment. See this thread: http://gradle.1045684.n5.nabble.com/Nested-multi-projects-and-caveats-td4480779.html
Cheers! On Thu, Jul 14, 2011 at 7:14 PM, Max Garmash <[email protected]> wrote: > Hello, > > I have some interesting problems with 2-level multiproject build. > > My layout: > //---------- > root/ > a/ > b/ > b1/ > b2/ > build.gradle > settings.gradle > build.gradle > settings.gradle > //---------- > > --root/settings.gradle-- > include 'a','b', 'b:b1' > -------------------------- > > --root/build.gradle-- > allprojects{ > apply plugin: 'java' > } > > project(':a'){ > dependencies{ > compile project(':b:b1') > } > } > -------------------------- > > --root/settings.gradle-- > include 'b1','b2' > -------------------------- > > --root/b/build.gradle-- > allprojects { > apply plugin:'java' > } > > project(':b1'){ > dependencies{ > compile project(':b2') > } > } > -------------------------- > > > b-project is a framework and it needs to be built alone without root > project. > > Running gradle from root/b/ is OK. But when I try to run it from root/ it > fails > > A problem occurred evaluating project ':b'. > Cause: Project with path ':b1' could not be found in project ':b'. > > If I change all paths in root/b/build.gradle to 'absolute' values like > ':b:b1' it builds from root/ but fails from /root/b/. Yes, I can write > workaround for it and dynamically add prefixes when building it from root/, > but I think it is wrong. Am I right? > > > -- > View this message in context: > http://gradle.1045684.n5.nabble.com/problems-with-2-level-multiproject-build-tp4587505p4587505.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 > > > -- Szczepan Faber Principal engineer@gradleware Lead@mockito --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
