a fast, scalable, multi-language and extensible build system
open sourceApache-2.0self-hostablefree
Bazel builds and tests software of any size by rebuilding only what is necessary, with local and distributed caching, dependency analysis and parallel execution. It supports Java, C++, Android, iOS, Go and many more languages through rules written in its Starlark extension language, and scales to huge monorepos.
Ways to install
Package managers
Problems it solves
- our monorepo with Java, C++ and Go takes an hour to build from scratch
- we want correct incremental builds where nothing is rebuilt unnecessarily
- share build results across every developer and CI machine
- run builds and tests on a remote cluster
- builds give different results on different machines
- only run the tests affected by a change in a huge repo
- one build tool for many languages instead of Maven, CMake and npm separately
- scale our build to thousands of engineers
Features
- incremental builds
- local and distributed caching
- remote execution
- multi-language rules
- Starlark extensions
- query
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
Alternatives
The same job
These do what Bazel does.
- Nx The Monorepo Platform that amplifies both developers and AI agents.
- ccache Compiler cache that speeds up C and C++ rebuilds
- Turborepo Task runner and build system for JavaScript and TypeScript monorepos, with remote caching
- Gradle The open source build system of choice for Java, Android, and Kotlin developers
- Pants Scalable build system for monorepos in many languages
- Buck2 Build system, successor to Buck
