CHAPTER 4

image

Understanding Gradle Builds

Central to Gradle are two basic building blocks—projects and tasks. A Gradle build is made up of one or more projects and each project contains one or more tasks. This chapter reviews those two building blocks. You will review these building blocks and learn about the lifecycle phases associated with builds.

Projects

A project in Gradle is an abstract concept that represents an artifact that needs to be built. For example, a Gradle project could be a Java application that gets assembled into a JAR file. A Gradle project can also represent a piece of work that needs to be accomplished. For example, a Gradle ...

Get Introducing Gradle 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.