From the course: Learning Gradle

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Build files and conventions

Build files and conventions

From the course: Learning Gradle

Start my 1-month free trial

Build files and conventions

- [Instructor] I want to explain the typical file and directory structure of a gradle project. We already discussed the purpose of the file, Build.gradle. It contains the build logic of the project. The file resides in the root directory of a project. Gradle does prescribe how to structure the source files of your project. In practice, you will find many projects that break up the code into multiple components for maintainability reasons, and to enforce separation of concerns. Gradle can model each of those components as a project, including dependencies between each other. Per project, you can define a built.gradle file that contains build logic for managing a component. Gradle calls to set up a multi-project build. In gradle land you define the multi-project build in the file named settings.gradle. Within the file, you can spell out the projects that participate in a build enter names. We only dealt with a single…

Contents