Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/google/bazel-common
Common functionality for Google's open-source libraries that are built with bazel.
https://github.com/google/bazel-common
Last synced: about 2 months ago
JSON representation
Common functionality for Google's open-source libraries that are built with bazel.
- Host: GitHub
- URL: https://github.com/google/bazel-common
- Owner: google
- License: apache-2.0
- Created: 2018-02-28T16:25:09.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-22T13:31:53.000Z (4 months ago)
- Last Synced: 2024-08-22T15:15:04.108Z (4 months ago)
- Language: Starlark
- Homepage:
- Size: 161 KB
- Stars: 84
- Watchers: 24
- Forks: 40
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bazel - Bazel Common Libraries - **Java-specific** Common functionality for Google's open-source libraries that are built with Bazel. (Tooling / Starlark)
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.
[`bazel`]: https://bazel.build
## Using Bazel Common
1. Choose the commit hash you want to use.
2. Add the following to your `MODULE.bazel` file, replacing `_COMMIT_` with the
commit hash.```bzl
bazel_dep(name = "google_bazel_common")
git_override(
module_name = "google_bazel_common",
commit = "_COMMIT_",
remote = "https://github.com/google/bazel-common",
)
```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:
```shell
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.