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
- [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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Build files and conventions4m 29s
-
Defining and configuring a task5m 28s
-
The directed acyclic graph (DAG)2m 44s
-
Build lifecycle phases2m 41s
-
Applying reusable functionality with plugins3m 20s
-
Domain object runtime representation2m 44s
-
Referencing the documentation2m 30s
-
Challenge: Define and execute a task1m 29s
-
Solution: Define and execute a task7m 55s
-
-