Composite Builds and Build Composition
Combine independent Gradle builds into one using composite builds (includeBuild), letting you develop and test interdependent projects together without publishing artifacts.
What is a Composite Build?
A composite build stitches multiple otherwise-independent Gradle builds together. Unlike subprojects, each included build keeps its own settings.gradle and lifecycle.
- Subprojects: one build, many modules
- Composite: many builds, joined on demand
Why Use Composites?
Composite builds shine when you work across repository boundaries:
- Develop a library and its consumer side by side
- Avoid publishing SNAPSHOTs just to test a change
- Debug a plugin in the context of a real project
All lessons in this course
- Monorepo Project Structure
- Subprojects & Configurations
- Inter-Project Dependencies
- Composite Builds and Build Composition