0Pricing
Groovy & Gradle: JVM Automation and Build Engineering · Lesson

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

  1. Monorepo Project Structure
  2. Subprojects & Configurations
  3. Inter-Project Dependencies
  4. Composite Builds and Build Composition
← Back to Groovy & Gradle: JVM Automation and Build Engineering