Skip to content

Commit 4380e15

Browse files
cpovirkGoogle Java Core Libraries
authored andcommitted
Bump Bazel to 9.0.0.
In `bazel_common` and `flogger`, this included temporarily adding a direct dependency on the newest version of `rules_android` so that [`rules_jvm_external` gets the version it needs for Bazel 9](https://github.com/bazel-contrib/rules_jvm_external/pull/1534/changes#diff-6136fc12446089c3db7360e923203dd114b6a1466252e71667c6791c20fe6bdcR7), avoiding this error: ``` ERROR: Traceback (most recent call last): File "/usr/local/google/home/cpovirk/.cache/bazel/_bazel_cpovirk/63abd04538d973afcb7c178098cdeca1/external/rules_android+/rules/android_binary/attrs.bzl", line 68, column 29, in <toplevel> deps = make_deps(DEPS_ALLOW_RULES, DEPS_PROVIDERS, DEPS_ASPECTS), File "/usr/local/google/home/cpovirk/.cache/bazel/_bazel_cpovirk/63abd04538d973afcb7c178098cdeca1/external/rules_android+/rules/android_binary/attrs.bzl", line 35, column 27, in make_deps return attr.label_list( Error in label_list: at index 0 of providers, got element of type NoneType, want Provider WARNING: Target pattern parsing failed. ERROR: Skipping '@google_bazel_common_maven//:pin': error loading package '@@rules_jvm_external++maven+google_bazel_common_maven//': at /usr/local/google/home/cpovirk/.cache/bazel/_bazel_cpovirk/63abd04538d973afcb7c178098cdeca1/external/rules_android+/rules/rules.bzl:45:5: at /usr/local/google/home/cpovirk/.cache/bazel/_bazel_cpovirk/63abd04538d973afcb7c178098cdeca1/external/rules_android+/rules/android_binary/rule.bzl:25:6: initialization of module 'rules/android_binary/attrs.bzl' failed ``` RELNOTES=n/a PiperOrigin-RevId: 874736106
1 parent 350f47c commit 4380e15

3 files changed

Lines changed: 553 additions & 65 deletions

File tree

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.5.1
1+
9.0.0

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
module(name = "google_bazel_common")
1616

1717
bazel_dep(name = "bazel_skylib", version = "1.9.0")
18+
bazel_dep(name = "rules_android", version = "0.7.1")
1819
bazel_dep(name = "rules_java", version = "9.5.0")
1920
bazel_dep(name = "rules_jvm_external", version = "6.10")
2021
bazel_dep(name = "rules_shell", version = "0.6.1")

0 commit comments

Comments
 (0)