I have not found something useful in the forums so i will post my question here.
What does a gradle.build file look like for a parallel project structure like this. I can’t get it working so far. I want my project structure to look like this:
org.sample.project (contains gradle.build and gradle.settings) org.sample.project.core org.sample.project.client org.sample.project.server … I dont want a project sourrounding these projects.
I tried a multi project build. In the gradle settings i was able to define ‘project.core’ ‘project.client’ and ‘project.server’ as subprojects of ‘project’
However i get into trouble when i want the client project to be a gwt project and maybe have more client projects as gwt-modules.
How does the gradle support for is this parallel project layout look like? Is it a better idea to have multiple gradle build files which are called from the main gradle.build file from the ‘org.sample.project’ dir?
You can automatically add subprojects to a project included in a hierarchical layout, but you can’t automatically add subprojects to a project included in a flat layout. If you really need such a layout, you can manually configure the subprojects in settings.gradle. For instance, given a layout like: