google/bazel-common

Common functionality for some Google open-source libraries that are built with Bazel

91

stars

212

commits

Starlark

primary language

Sep 8, 2026

updated

Browse cluster: Java libraries and static analysis tooling

README

Bazel Common Libraries

This repository contains assorted common functionality for Google's open-source libraries that are built with bazel. It is an experimental project and none of the APIs/target names are fixed/guaranteed to remain. You are welcome to use it and offer feedback at your own risk.

This is not an official Google product.

Using Bazel Common

  1. Choose the commit hash you want to use.

  2. Add the following to your MODULE.bazel file. The version can be found here

    bazel_dep(
        name = "google_bazel_common",
        version = "0.0.1",
    )
    

To update the version of Bazel Common, choose a new commit and update your MODULE.bazel file.

Incrementing the version of an exported library

  1. Open MODULE.bazel

  2. Find the maven coordinate of the library export that you want to increment

  3. Update the version number in the maven coordinate

  4. Update the maven_install.json file by running:

    REPIN=1 bazelisk run @google_bazel_common_maven//:pin
    
  5. Send the change for review.

  6. Once submitted, remember to update your own dep on bazel_common to the version containing your change.

Contributors

(top 30 of 43)

cpovirk

56 commits

ronshapiro

45 commits

dependabot[bot]

15 commits

cgdecker

12 commits

google/bazel-common

Common functionality for some Google open-source libraries that are built with Bazel

91

stars

212

commits

Starlark

primary language

Sep 8, 2026

updated

Browse cluster: Java libraries and static analysis tooling

README

Bazel Common Libraries

This repository contains assorted common functionality for Google's open-source libraries that are built with bazel. It is an experimental project and none of the APIs/target names are fixed/guaranteed to remain. You are welcome to use it and offer feedback at your own risk.

This is not an official Google product.

Using Bazel Common

  1. Choose the commit hash you want to use.

  2. Add the following to your MODULE.bazel file. The version can be found here

    bazel_dep(
        name = "google_bazel_common",
        version = "0.0.1",
    )
    

To update the version of Bazel Common, choose a new commit and update your MODULE.bazel file.

Incrementing the version of an exported library

  1. Open MODULE.bazel

  2. Find the maven coordinate of the library export that you want to increment

  3. Update the version number in the maven coordinate

  4. Update the maven_install.json file by running:

    REPIN=1 bazelisk run @google_bazel_common_maven//:pin
    
  5. Send the change for review.

  6. Once submitted, remember to update your own dep on bazel_common to the version containing your change.

Contributors

(top 30 of 43)

cpovirk

56 commits

ronshapiro

45 commits

dependabot[bot]

15 commits

cgdecker

12 commits

Languages

Starlark

93.7%

Shell

6.3%