Chapter 6. Multiproject builds

This chapter covers

  • Organizing a project’s source code into subprojects
  • Modeling the build for a multiproject hierarchy
  • Configuring project behavior with the Project API
  • Declaring dependencies between projects
  • Customizing your build with the Settings API

The code base of every active software project will grow over time. What started as a small project with a handful of classes may quickly become a collection of packages and classes with different responsibilities. To improve maintainability and prevent tight coupling, you’ll want to group code into modules based on particular functionality and logical boundaries. Modules are usually organized hierarchically and can define dependencies on each other. The build ...

Get Gradle in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.