bazel

Updated: 2021-12-07

Android is moving to Bazel.

Config written in Starlark, a dialect of Python https://github.com/bazelbuild/starlark/

What's new

External Dependencies

https://docs.bazel.build/versions/main/bzlmod.html

It will be more like other dependency management systems (maven, npm, cargo, etc)

  • Bazel Modules
  • Bazel Central Repository (BCR)

Trouble Shooting

Error: ... undeclared inclusion(s) in rule ...

This can happen after installing or upgrading developer tools (xcode). Try

$ bazel clean --expunge

Rules

To pull Maven artifacts, use rules_jvm_external