4.12
Bzlmod (MODULE.bazel)
If using Bazel 6, make sure you set the
--enable_bzlmod
flag
bazel_dep(name = "rules_robolectric", version = "4.12")
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.12",
],
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 = "947c047613ab2b64798cbe46fe850931d5753e739af11f9ee6be675ff1afb5eb",
strip_prefix = "robolectric-bazel-4.12",
urls = ["https://github.com/robolectric/robolectric-bazel/releases/download/4.12/robolectric-bazel-4.12.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.12",
],
repositories = [
"https://maven.google.com",
"https://repo1.maven.org/maven2",
],
)
What's Changed
- Update release_prep.sh by @alexeagle in #89
- Bump actions/checkout from 3 to 4 by @dependabot in #90
- Bump actions/cache from 3 to 4 by @dependabot in #91
- Make robolectric-deps.properties public by @jylinv0 in #92
- Bump bazelbuild/setup-bazelisk from 2 to 3 by @dependabot in #93
- Update Bazel to 7.0.2 by @Bencodes in #94
- Add Bazel version to presubmit by @Bencodes in #96
- Bump bazel-contrib/.github from 5 to 6 by @dependabot in #97
- Support Robolectric 4.12 by @utzcoz in #98
- Add windows and macos x86 & arm as CI running OSes by @utzcoz in #99
- Remove macos-14 from ci platform by @utzcoz in #100
- Add docs for publishing releases by @Bencodes in #102
- Update Bazel to 7.1.1 by @Bencodes in #103
- Add supported tag pattern: . by @utzcoz in #104
New Contributors
Full Changelog: 4.11.1...4.12