简体   繁体   中英

Can I create 2-level structure of modules in Gradle?

I have 3 gradle projects. But each of them consists of 10 gradle subprojects. May I merge it to one big gradle project with 3 big modules, and every module with 10 gradle subprojects?

Yes, if you need it. The only thing is, that you can have only one settings.gradle file in your root project, where you have to include all the subprojects with their relative paths, like:

include "subProject", "subProject:subSubProject"

This will make a project structure like:

Root project
├── settings.gradle
├── Sub project
|   ├── Sub-sub project
|   |   └── build.gradle
|   └── build.gradle
└── build.gradle

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM