It is possible to create projects with multiple level of depth with independent subprojects?


(Marek Nowicki) #1

It is possible to create projects with multiple level of depth?

I mean project look like: root root/gui root/gui/mobile/android root/gui/mobile/ios root/gui/www root/db root/db/mysql root/db/postgresql

There are three persons - one for root, one for gui and one for db. “gui” person would like to build his stuff independently on the root and db. The same with “db”. “db” person would like, at some point of time, add more subprojects. He don’t want to contact to root to add that subprojects in root/settings.gradle file. He would like to store everything in his own “settings.gradle” file (the same for “gui” guy). BUT building “root” should build every project in gui and db that is in their settings.gradle.

How to accomplish that? Is it possible without writing long groovy code?


(Peter Niederwieser) #2

Multiple levels of depth are supported out-of-the-box. However, currently only a single ‘settings.gradle’ per build is supported. Hence you’d have to script ‘settings.gradle’ to somehow produce the desired behavior (e.g. by reading in other files etc.).