YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Intro to Tasks

Get Embed Code
4 Languages

Showing Revision 53 created 05/25/2016 by Udacity Robot.

  1. One of the strengths of Gradle lies
    in it's extensible domain model.
  2. At the heart of this model
    is the concept of tasks.
  3. A task is a self-contained unit of
    work that Gradle can reason about.
  4. At the core of a task is its action, for
  5. example we might declare a task
    to compile some Java sources or
  6. to copy some files from one directory
    to another, or to simply print hello.
  7. A task can perform some
    action in isolation but
  8. it can also declare
    dependencies on other tasks.
  9. Gradle will ensure that all
    these dependencies are run and
  10. ensure all of their dependencies and
    so on and so on.
  11. A task can also define its inputs and
  12. its outputs, the files that
    it reads from and writes to.
  13. This allows Gradle to determine if
    a task needs to do its work, or
  14. if everything is already up to date,
    in which case it doesn't need to run.
  15. We'll explore all these features
    later on in this lesson, but for
  16. now let's get Gradle up and
    running and execute our first task.