This version of mabel requires Bazel 7+ and will only work with bzlmod.
Installation
To use this version, add the following to your MODULE.bazel file:
bazel_dep(name = "mabel", version = "0.60.0")
# Optional: Use the release archive directly until it is available in the BCR
archive_override(
module_name = "mabel",
urls = ["https://github.com/menny/mabel/releases/download/v0.60.0/mabel-0.60.0.tar.gz"],
integrity = "sha256-jaJvtrPwBTfuOnJiwwl68/W7IgLWiBy5OwifnZwt3Xs=",
strip_prefix = "mabel-0.60.0",
)Setup
To add dependencies, define those in a BUILD.bazel file:
load("@mabel//rules:mabel.bzl", "artifact", "mabel_rule")
mabel_rule(
name = "mvn_deps",
lockfile_path = " mvn_install.json",
maven_deps = [
artifact("com.google.guava:guava:20.0"),
],
)Then in your MODULE.bazel file:
mabel = use_extension("@mabel//rules:extensions.bzl", "mabel")
mabel.install(
aliases_repo = "mvn",
lockfile = "//:mvn_install.json",
)
use_repo(mabel, "mvn")Read more in the README.
What's Changed
- Update mabel version to 0.50.2 by @github-actions[bot] in #123
- Support for bazel 9 by @menny in #124
Full Changelog: v0.50.2...v0.60.0