Gradle add nested subproject from a multi-module project as dependency of another subproject
- 阅读更多 关于 Gradle add nested subproject from a multi-module project as dependency of another subproject
问题 I have a complex, but interesting situation. This is a tree diagram of my folder structure: root |___ settings.gradle |___ p1 |___ p2 // depends on p3/sp1 |___ p3 |____|___sp1 |____|___sp2 I hope that explains the situation. Now how would I add sp1 as a dependency of p2 ? So far in my root setting.gradle , I have rootProject.name = root include 'p1' include 'p2' include 'p3' In p2 build.gradle, I have: dependencies { compile project (':p3:sp1') } But doing this still does not resolve the