Commit c1bcb5d
[CI] Added rules_java dep to Bazel (grpc#38508)
Bazel 8 and the upcoming Protobuf v30 will need `rules_java` version 8.x. While gRPC itself doesn't directly use `rules_java`, its dependency, Envoy API, needs it and uses `rules_java` 7.x. This creates a conflict because rules_java 7.x is incompatible with both Bazel 8 and Protobuf v30. To resolve this, `rules_java` 8.x must be included in the build before Envoy API, fixing the build issue.
Note that gRPC doesn't call `rules_java_toolchains`, typically found in rules_java workspace configurations ([ref](https://github.com/bazelbuild/rules_java/releases/tag/8.7.0)). This is because it can't be included in `grpc_extra_deps` where `rules_java_dependencies` is called. This is acceptable since gRPC's primary concern is Bazel build setup, not Java functionality.
Partial commit of grpc#38254
Closes grpc#38508
COPYBARA_INTEGRATE_REVIEW=grpc#38508 from veblush:b8-java 10ef60c
PiperOrigin-RevId: 7181163201 parent 808f96e commit c1bcb5d
File tree
3 files changed
+15
-0
lines changed- bazel
- tools/run_tests/sanity
3 files changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
251 | 261 | | |
252 | 262 | | |
253 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
0 commit comments