Gradle Life cycle.

Gradle tasks go through several phases:

  1. Initialization: Determines which project and tasks will be part of the build.
    1. initialization
  2. Configuration: Configures all tasks in the project (even if they are not executed).
    1. configuration
  3. Execution: Executes the tasks in the specified order, respecting task dependencies.
    1. execution
    2. task-action

References