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
(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…
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
-
-
-
-
(Locked)
Build files and conventions4m 29s
-
(Locked)
Defining and configuring a task5m 28s
-
(Locked)
The directed acyclic graph (DAG)2m 44s
-
(Locked)
Build lifecycle phases2m 41s
-
(Locked)
Applying reusable functionality with plugins3m 20s
-
(Locked)
Domain object runtime representation2m 44s
-
(Locked)
Referencing the documentation2m 30s
-
(Locked)
Challenge: Define and execute a task1m 29s
-
(Locked)
Solution: Define and execute a task7m 55s
-
(Locked)
-