Bazel logo

Bazel

Build and test software of any size, quickly and reliably

What is Bazel?

Bazel is a build tool that builds code quickly and reliably. It is used to build the majority of Google's software, and thus it has been designed to handle build problems present in Google's development environment.
Bazel is a tool in the Java Build Tools category of a tech stack.
Bazel is an open source tool with 17.7K GitHub stars and 3.2K GitHub forks. Here’s a link to Bazel's open source repository on GitHub

Who uses Bazel?

Companies
27 companies reportedly use Bazel in their tech stacks, including Google, Asana, and Square.

Developers
177 developers on StackShare have stated that they use Bazel.

Bazel Integrations

Java, C++, Objective-C, Kind, and Tulsi are some of the popular tools that integrate with Bazel. Here's a list of all 5 tools that integrate with Bazel.
Pros of Bazel
26
Fast
18
Deterministic incremental builds
15
Correct
13
Enforces declared inputs/outputs
13
Multi-language
9
High-level build language
8
Scalable
5
Multi-platform support
4
Sandboxing
3
Dependency management
2
Flexible
2
Windows Support
1
Android Studio integration
Decisions about Bazel

Here are some stack decisions, common use cases and reviews by companies and developers who chose Bazel in their tech stack.

Joshua Dean Küpper
CEO at Scrayos UG (haftungsbeschränkt) · | 2 upvotes · 242.5K views

All Java-Projects are compiled using Apache Maven. We prefer it over Apache Ant and Gradle as it combines lightweightness with feature-richness and offers basically all we can imagine from a software project-management tool and more. We're open however to re-evaluate this decision in favor of Gradle or Bazel in the future if we feel like we're missing out on anything.

See more

Blog Posts

Mar 24 2021 at 12:57PM

Pinterest

GitJenkinsKafka+7
3
1639
GitJenkinsGroovy+4
4
1821

Bazel's Features

  • Multi-language support: Bazel supports Java, Objective-C and C++ out of the box, and can be extended to support arbitrary programming languages
  • High-level build language: Projects are described in the BUILD language, a concise text format that describes a project as sets of small interconnected libraries, binaries and tests. By contrast, with tools like Make you have to describe individual files and compiler invocations
  • Multi-platform support: The same tool and the same BUILD files can be used to build software for different architectures, and even different platforms. At Google, we use Bazel to build both server applications running on systems in our data centers and client apps running on mobile phones
  • Reproducibility: In BUILD files, each library, test, and binary must specify its direct dependencies completely. Bazel uses this dependency information to know what must be rebuilt when you make changes to a source file, and which tasks can run in parallel. This means that all builds are incremental and will always produce the same result
  • Scalable: Bazel can handle large builds

Bazel Alternatives & Comparisons

What are some alternatives to Bazel?
Pants
Pants is a build system for Java, Scala and Python. It works particularly well for a source code repository that contains many distinct projects.
Webpack
A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows to load parts for the application on demand. Through "loaders" modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
Ansible
Ansible is an IT automation tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. Ansible’s goals are foremost those of simplicity and maximum ease of use.
Buck
Buck encourages the creation of small, reusable modules consisting of code and resources, and supports a variety of languages on many platforms.
CMake
It is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of the user's choice.
See all alternatives

Bazel's Followers
426 developers follow Bazel to keep up with related blogs and decisions.