GradleBuildExperiment
Android experiment that clarify dependency between amount of modules and build time.
Install / Use
/learn @NikitaKozlov/GradleBuildExperimentREADME
GradleBuildExperiment
Android experiment that clarify dependency between amount of modules and incremental build time. You can find more details and results of this experiment here.
Problem
If in a single-module project one class is changed, gradle have to recompile the whole project.
Hypothesis
Incremental build for a project with multiple modules is faster then for a single-module project, because only modified modules are recompiled while the rest — not.
Structure
Every branch will have it's own configuration. All configurations has around 90 000 methods splitted among 15 000 classes. Configurations are listed roughly in order they mentioned in the article.
- 1 module. Initial state.
- 3 modules. Code is equally split between 3 modules.
- 3 modules release conf. Code is equally split between 3 modules. But both debug and release versions of application depends on release versions of library modules.
- 5 modules. Code is equally split between 5 modules.
- 3 + 1 modules. Code is equally split between 3 library modules. Application module is tiny.
- 5 + 1 modules. Code is equally split between 5 library modules. Application module is tiny.
- 1 module without Annotation processors. The only configuration without Annotation Processors.
- 1 module API 21. Like initial state, but
minSdkis 21. - 5 + 1 modules API 21. Exactly like 5 + 1 configuration, but
minSdkis 21.
Results
Below you can find final results for incremental build time. For best case it was reduced from 1m 10s to 17s. For more explanation please read the article.

Related Skills
node-connect
347.6kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.6kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.6kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
Security Score
Audited on Jul 29, 2025
