A Gradle script is a program. We use a Groovy DSL to express our build logic. Gradle has several useful built-in methods to handle files and directories as we often deal with files and directories in our build logic.
In this chapter, we will discuss how to use Gradle's features to work with files and directories. We will also take a look at how to set properties in a Gradle build and use Gradle's logging framework. Finally, we see will how to use the Gradle Wrapper task to distribute a configurable Gradle with our build scripts.