Build Lifecycle

Gradle runs these phases in order:

Phase 1. Initialization
Detects the settings.gradle(.kts) file.

Creates a Settings instance.

Evaluates the settings file to determine which projects (and included builds) make up the build.

Creates a Project instance for every project.

Phase 2. Configuration
Evaluates the build scripts, build.gradle(.kts), of every project participating in the build.

Creates a task graph for requested tasks.

Phase 3. Execution
Schedules and executes the selected tasks.

Dependencies between tasks determine execution order.

Execution of tasks can occur in parallel.

posted @ 2024-09-14 17:40  MatroLeox  阅读(5)  评论(0编辑  收藏  举报