A Gradle Build Task comprises of more than one project/task representing the work done with Gradle. For example, it can represent a web application or a library jar or an activity that used Gradle and so on.
Let’s look at the main features of Gradle build tasks:
Every task has a life-cycle method- do last and do first.
You can configure the DAG
Task dependencies are defined using properties like dependsOn, mustRunafter and so on.