I’m in the beginnings of converting a large baseline from ‘ant’ to ‘gradle’. I’d like to avoid restructuring as much as possible and have run into a snag with what I would call a multiproject within a multiproject. Assume I have the following:
ProjectA
- ProjectB
- ProjectC
| - ProjectD
| - ProjectE
ProjectA - settings.gradle contains: include(‘ProjectB’, ‘ProjectC’)
ProjectC - settings.gradle contains: include(‘ProjectD’, "ProjectE’)
Sitting in ProjectA; ./gradlew build
Expectation: build ProjectB, then traverse ProjectC and build ProjectD and ProjectE
Result: only ProjectB is actually built
If I manually change directory to ProjectC and ./gradlew build, ProjectD and ProjectE build
What am I doing wrong? ProjectC is just the example created from running ‘gradle init’ and selecting options for a Java multiproject.
Sitting in ProjectA; ./gradlew tasks --all
Other tasks reports ProjectB:compileJava, but there is no ProjectC:compileJava or whatever task would traverse into ProjectD and ProjectE.