4.13
Bzlmod (MODULE.bazel)
If using Bazel 6, make sure you set the
--enable_bzlmod
flag
bazel_dep(name = "rules_robolectric", version = "4.13")
bazel_dep(name = "rules_jvm_external", version = "5.3")
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
artifacts = [
"org.robolectric:robolectric:4.13",
],
repositories = [
"https://maven.google.com",
"https://repo1.maven.org/maven2",
],
)
use_repo(maven, "maven")
Workspace
Add the robolectric
and rules_jvm_external
repositories in your WORKSPACE file:
http_archive(
name = "robolectric",
sha256 = "a270fd6fd83f9f024623e787696e6b73c44664b7c95f3d937ed35bf0a94a67ae",
strip_prefix = "robolectric-bazel-4.13",
urls = ["https://github.com/robolectric/robolectric-bazel/releases/download/4.13/robolectric-bazel-4.13.tar.gz"],
)
load("@robolectric//bazel:robolectric.bzl", "robolectric_repositories")
robolectric_repositories()
http_archive(
name = "rules_jvm_external",
sha256 = "d31e369b854322ca5098ea12c69d7175ded971435e55c18dd9dd5f29cc5249ac",
strip_prefix = "rules_jvm_external-5.3",
url = "https://github.com/bazelbuild/rules_jvm_external/releases/download/5.3/rules_jvm_external-5.3.tar.gz",
)
load("@rules_jvm_external//:defs.bzl", "maven_install")
maven_install(
name = "maven",
artifacts = [
"com.google.truth:truth:1.1.3",
"org.robolectric:robolectric:4.13",
],
repositories = [
"https://maven.google.com",
"https://repo1.maven.org/maven2",
],
)
What's Changed
- Update Bazel to 7.1.2 by @Bencodes in #109
- Update buildifier_prebuilt to 6.4.0 by @Bencodes in #110
- Update buildifier_prebuilt to 6.4.0 in WORKSPACE by @Bencodes in #112
- Update bazel_skylib to 1.6.1 by @Bencodes in #111
- Update Bazel to 7.2.1 by @Bencodes in #113
- Update Robolectric to 4.13 by @Bencodes in #114
Full Changelog: 4.12.2...4.13