Buckets:
Core concepts
| Concept | Description |
|---|---|
| Build | A class extending Build. Each target is a field. |
| Target | A named unit of work: a description, dependencies, and a body. |
| Dependency graph | A DAG derived from .dependsOn(...). Cycles are an error. |
| Plan | The requested target's transitive dependencies, topologically sorted. |
| Executor | Runs the plan (serially or in parallel), with timing and pass/fail reporting. |
Execution semantics
- Instantiate the build class.
- Discover targets by property introspection.
- Resolve parameters (flags → env → defaults) before any target runs.
- Build the dependency graph from
.dependsOn(...). - Validate: an undefined/unknown dependency or a cycle fails fast (with the
offending path) and exits
1. - Compute the requested target's transitive closure.
- Topologically sort (honouring
before/after). Targets run one at a time in deterministic order by default;--parallel(or agroup()) runs independent targets concurrently while still completing every dependency before its dependents. - For each target, honour its
onlyWhenconditions and the incremental cache: a target whose inputs are unchanged is skipped and reportedcached, without running its body. - Run each body. On throw, stop and report (unless the target opted into
.proceedAfterFailure()). - Each target runs at most once per invocation — diamond dependencies dedupe.
Xet Storage Details
- Size:
- 1.89 kB
- Xet hash:
- ae9bc288b81a4b37fe62d33736686e212eaacd7ad74420a9c2371b954929050f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.