concept other project in category gradle

appears as: other projects
Gradle in Action - corrected 9052019

This is an excerpt from Manning's book Gradle in Action - corrected 9052019.

Figure 4.1. Two basic concepts of a Gradle build are projects and tasks. A project can depend on other projects in the context of a multiproject build. Similarly, tasks can form a dependency graph that guarantees their execution order.

In this section, you’ll learn how to define specific and common behaviors for projects in a multiproject build, a powerful way to avoid having to repeat configuration. Some of the subprojects may depend on the compiled source code of other projects—in your application, the code from the project model is used by the repository project. By declaring project dependencies, you can make sure imported classes are available on the classpath. Before you fill your empty build.gradle file with life, we’ll review methods of the Project API I haven’t shown you yet but that are relevant in the context of multiproject builds.