From the course: Learning Gradle

Unlock the full course today

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

Solution: Define and execute a task

Solution: Define and execute a task

From the course: Learning Gradle

Start my 1-month free trial

Solution: Define and execute a task

(upbeat music) - You can see here on my screen I already opened a terminal, we'll use that upper terminal to edit the built up Gradle file and down here, I have another terminal which we can use to execute the Gradle commands. I will also open the Gradle DSL every once in a while when we talk about specific method calls and properties that we said from our build script just so you understand what API we're using here. So we'll start by having a look at the existing source files. So we'll have a look at the source directory. You can see there's a Hello World dot text file, plain dot text and another file that we actually don't want to include which is test adoc. So let's get started by editing the build dot Gradle file and we will simply start by applying the base plugin. We already learned that the base plugin provides us with certain naming conventions, for example, if it will produce any kind of archive with the Gradle…

Contents