Auto Include Gradle Modules - Never write an include statement again

Опубликовано: 04 Февраль 2026
на канале: Brandon Gogetap
55
2

Learn what to add to your settings.gradle file to automatically `include(...)` all modules in your project, without having to write include statements for each one.

This can be a small time saver, especially if you use scripts to generate modules, rather than the built-in wizard.

Snippet: https://gist.github.com/bgogetap/c161...
Add this to your `settings.gradle.kts` file, and remove all `include(...)` statements.

I personally use this in all of my Android projects, coupled with using a script to generate modules (link below), to make adding new modules have very low friction.

Use scripts to generate modules:    • Creating Gradle Modules - Ditch the Androi...  

#android #gradle #androidstudio #kotlin #androiddev #androiddevelopment