Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

defining subprojects in a deeply nested directory tree

Tags:

gradle

how do I define sub projects in a nested directory tree where the sub-project folders are not immediate children of the root project

root
  lala
    A
  lulu
    B

Now I Want to add A & B as sub projects. If I do

//settings.gradle
include "lala:A", "lulu:B"

then also "lala" and "lulu" will be added as sub projects. However I only want to add A & B and nothing else.

like image 959
robkuz Avatar asked Dec 27 '13 20:12

robkuz


1 Answers

By default, Gradle assumes that the physical directory layout follows the logical project hierarchy, but you can reconfigure it any way you like. For example:

include "A", "B"

project(":A").projectDir = file("lala/A")
project(":B").projectDir = file("lala/B")
like image 99
Peter Niederwieser Avatar answered Oct 17 '22 05:10

Peter Niederwieser