Skip to content

Commit b822a64

Browse files
committed
Bazel 8 + rules_java 8 compatibility updates
Bumps dependencies to versions that are compatible with both Bazel 7.5.0 and 8.0.0. Part of bazelbuild#1482. Closes bazelbuild#1652. - ScalaPB jars: 0.11.17 => 1.0.0-alpha.1 - `rules_python`: 0.38.0 => 1.2.0 - `rules_cc`: 0.0.9 => 0.1.1 - `abseil-cpp`: 20220623.1 => 20250127.0 - `rules_java`: 7.12.4 => 8.9.0 - `protobuf`: 21.7 => 29.3 - `rules_proto`: 6.0.2 => 7.1.0 - `google-common-protos`: 2.52.0 => 2.53.0 This precipitated the following updates also included in this commit: - Loads `java_proto_library` from `com_google_protobuf`. - Bumps `.bazelversion` to 7.5.0. - Sets `.bazelci/presubmit.yml` to use Bazel 7.5.0 instead of 6.5.0, and `last_rc` in place of `7.x`. - Sets `common --enable_workspace --noenable_bzlmod` in `.bazelrc` and `tools/bazel\.rc\.buildkite`. - Adds `allow_empty = True` to a `glob` expression in `//test/semanticdb:lib_with_tempsrc`. - Removes Scala 2.11 test cases. Bazel 6 is officially unsupported as of this change and the upcoming `rules_scala` 7.0.0 release. `WORKSPACE` builds succeed under Bazel 6.5.0 (with C++ compiler flags) for the time being, but are not guaranteed to continue working. (Bazel 6 Bzlmod builds would break anyway, because Bazel 6 doesn't provide `use_repo_rule`, required by `rules_jvm_external` 6.3, which is required by `protobuf` v29.) The `README` now documents that `scala_proto` or any rules otherwise depending on `protobuf` are no longer supported out of the box for Scala 2.11. Such users will have to ensure they register their own downgraded versions, at their own risk of future `rules_scala` 7.x incompatibility. Version bump related updates to `.bazelversion`,`WORKSPACE`, and `third_party/repositories` comprise the bulk of this change. Other small, yet important changes (other than those due to the version bumps noted above) include: - Adding a new `examples/overridden_artifacts` repository and the `overridden_artifacts_example` test case in `test/shell/test_examples.sh`. - Making `_validate_scalac_srcjar()` and `dt_patched_compiler_setup()` in `scala/private/macros/scala_repositories.bzl` more tolerant of dictionaries containing keys mapped to `None`. The new `overridden_artifacts_example` test covers this. Bazel 8 and `rules_java` 8 require `protobuf` >= v29. After the `protobuf` v29 bump, and before the ScalaPB 1.0.0-alpha.1 bump, `scala_proto` targets would fail with the following error: ```txt ERROR: .../external/com_google_protobuf/src/google/protobuf/BUILD.bazel:23:14: ProtoScalaPBRule external/com_google_protobuf/src/google/protobuf/any_proto_jvm_extra_protobuf_generator_scalapb.srcjar failed: (Exit 1): scalapb_worker failed: error executing ProtoScalaPBRule command (from target @@com_google_protobuf//src/google/protobuf:any_proto) bazel-out/.../bin/src/scala/scripts/scalapb_worker ... (remaining 2 arguments skipped) --jvm_extra_protobuf_generator_out: java.lang.NoSuchMethodError: 'java.lang.Object com.google.protobuf.DescriptorProtos$FieldOptions.getExtension(com.google.protobuf.GeneratedMessage$GeneratedExtension)' at scalapb.compiler.DescriptorImplicits$ExtendedFieldDescriptor.fieldOptions(DescriptorImplicits.scala:329) [ ...snip... ] java.lang.RuntimeException: Exit with code 1 at scala.sys.package$.error(package.scala:30) at scripts.ScalaPBWorker$.work(ScalaPBWorker.scala:44) at io.bazel.rulesscala.worker.Worker.persistentWorkerMain(Worker.java:96) at io.bazel.rulesscala.worker.Worker.workerMain(Worker.java:49) at scripts.ScalaPBWorker$.main(ScalaPBWorker.scala:39) at scripts.ScalaPBWorker.main(ScalaPBWorker.scala) ERROR: .../external/com_google_protobuf/src/google/protobuf/BUILD.bazel:23:14 Building source jar external/com_google_protobuf/src/google/protobuf/any_proto_scalapb-src.jar failed: (Exit 1): scalapb_worker failed: error executing ProtoScalaPBRule command (from target @@com_google_protobuf//src/google/protobuf:any_proto) bazel-out/darwin_arm64-opt-exec-ST-a828a81199fe/bin/src/scala/scripts/scalapb_worker ... (remaining 2 arguments skipped) ``` Here's why the other changes were necessary in light of the version bumps: - `java_proto_library` from `rules_java` is now officially deprecated, hence loading it from `com_google_protobuf`. - Setting `common --enable_workspace --noenable_bzlmod` (instead of `build`) fixes `test_semanticdb_handles_removed_sourcefiles`. This test relies on `bazel query`, which is also affected by these flags, hence `common` instead of `build`. Bazel 8 defaults to `--enable_bzlmod --noenable_workspace`, causing the `WORKSPACE` run of this test to fail. - `glob` requires an explicit `allow_empty = True` parameter now that `--incompatible_disallow_empty_glob` defaults to `True` in Bazel 8. - ScalaPB 0.9.8, the last version compatible with Scala 2.11, does not support `protobuf` >= 26.0. For this reason, we must remove the Scala 2.11 test cases. We should consider dropping Scala 2.11 support at this point, since there's no ScalaPB release for it that supports later versions of `protobuf`. That, and we could remove some of the special case code added in the following changes, amongst other 2.11 support details: - bazelbuild#1631 - bazelbuild#1648 - bazelbuild#1687 - bazelbuild#1688 Finally, the motivation for the non-version bump changes: - The design bug in the upcoming Bzlmod API for `overridden_artifacts` reported by @dmivankov precipitated the `examples/overriden_artifacts` repo and test. See: bazelbuild#1482 (comment) bazelbuild#1482 (comment) - The `_validate_scalac_srcjar()` update maintains the strict checks for mutually exclusive values, while preventing client code from having to explicitly filter out `None` entries. This pairs with the change in `dt_patched_compiler_setup()` that uses the `compiler_srcjar` dictionary. These changes helps keep the upcoming module extension a bit cleaner.
1 parent eadc090 commit b822a64

File tree

58 files changed

+432
-263
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+432
-263
lines changed

.bazelci/presubmit.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,17 @@ tasks:
2929
# Install xmllint
3030
- sudo apt update && sudo apt install --reinstall libxml2-utils -y
3131
- "./test_rules_scala.sh"
32-
test_rules_scala_linux_latest:
33-
name: "./test_rules_scala (latest Bazel)"
32+
# Switch `last_rc` to `last_green` once Bzlmod lands.
33+
# https://github.com/bazelbuild/rules_scala/issues/1482
34+
test_rules_scala_linux_last_rc:
35+
name: "./test_rules_scala (last_rc Bazel)"
3436
platform: ubuntu2004
35-
# Restore `bazel: latest` once Bazel 8 compatibility lands (#1625, #1652).
36-
bazel: 7.x
37+
bazel: last_rc
3738
shell_commands:
3839
# Install xmllint
3940
- sudo apt update && sudo apt install --reinstall libxml2-utils -y
4041
- echo "build --enable_workspace" >> .bazelrc
41-
- "./test_rules_scala.sh || buildkite-agent annotate --style 'warning' \"Optional build with latest Bazel version failed, [see here](${BUILDKITE_BUILD_URL}#${BUILDKITE_JOB_ID}) (It is not mandatory but worth checking)\""
42+
- "./test_rules_scala.sh || buildkite-agent annotate --style 'warning' \"Optional build with last_rc Bazel version failed, [see here](${BUILDKITE_BUILD_URL}#${BUILDKITE_JOB_ID}) (It is not mandatory but worth checking)\""
4243
test_rules_scala_macos:
4344
name: "./test_rules_scala"
4445
platform: macos
@@ -53,16 +54,16 @@ tasks:
5354
- "set PATH=/usr/bin;%PATH%" #Make sure bash uses msys commands over windows commands. (i.e. find).
5455
- "bash -lc \"pacman --noconfirm --needed -S libxml2\"" #tests require xmllint
5556
- "bash test_rules_scala.sh"
56-
test_coverage_linux_6_5_0:
57+
test_coverage_linux_7_5_0:
5758
name: "./test_coverage"
5859
platform: ubuntu2004
59-
bazel: 6.5.0
60+
bazel: 7.5.0
6061
shell_commands:
6162
- "./test_coverage.sh"
62-
test_coverage_macos_6.5.0:
63+
test_coverage_macos_7.5.0:
6364
name: "./test_coverage"
6465
platform: macos
65-
bazel: 6.5.0
66+
bazel: 7.5.0
6667
shell_commands:
6768
- "./test_coverage.sh"
6869
test_reproducibility_linux:
@@ -93,13 +94,13 @@ tasks:
9394
examples_linux:
9495
name: "./test_examples"
9596
platform: ubuntu2004
96-
bazel: 6.5.0
97+
bazel: 7.5.0
9798
shell_commands:
9899
- "./test_examples.sh"
99100
cross_build_linux:
100101
name: "./test_cross_build"
101102
platform: ubuntu2004
102-
bazel: 6.5.0
103+
bazel: 7.5.0
103104
shell_commands:
104105
- "./test_cross_build.sh"
105106
lint_linux:

.bazelrc

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
# Switch to --noenable_workspace when Bzlmod lands.
2+
# https://github.com/bazelbuild/rules_scala/issues/1482
3+
common --enable_workspace --noenable_bzlmod
4+
15
build --enable_platform_specific_config
26

37
#Windows needs --worker_quit_after_build due to workers not being shut down when the compiler tools need to be rebuilt (resulting in 'file in use' errors). See Bazel Issue#10498.
48

59
build:windows --worker_quit_after_build --enable_runfiles
6-
7-
# Remove upon completing Bzlmod compatibility work.
8-
# - https://github.com/bazelbuild/rules_scala/issues/1482
9-
build --noenable_bzlmod

.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0

README.md

+64-54
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,7 @@ load("@rules_scala//scala:deps.bzl", "rules_scala_dependencies")
6262

6363
rules_scala_dependencies()
6464

65-
# In `rules_scala` 7.x, `scala/deps.bzl` imports `rules_java` 7.x. This
66-
# statement will change for `rules_scala` 8.x, which will use `rules_java` 8.x.
67-
load(
68-
"@rules_java//java:repositories.bzl",
69-
"rules_java_dependencies",
70-
"rules_java_toolchains",
71-
)
65+
load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")
7266

7367
rules_java_dependencies()
7468

@@ -78,13 +72,11 @@ bazel_skylib_workspace()
7872

7973
# If you need a specific `rules_python` version, specify it here.
8074
# Otherwise you may get the version defined in the `com_google_protobuf` repo.
81-
# We use 0.38.0 to maintain compatibility with Bazel 6.5.0; this will change in
82-
# rules_scala 8.0.0.
8375
http_archive(
8476
name = "rules_python",
85-
sha256 = "ca2671529884e3ecb5b79d6a5608c7373a82078c3553b1fa53206e6b9dddab34",
86-
strip_prefix = "rules_python-0.38.0",
87-
url = "https://github.com/bazelbuild/rules_python/releases/download/0.38.0/rules_python-0.38.0.tar.gz",
77+
sha256 = "9c6e26911a79fbf510a8f06d8eedb40f412023cf7fa6d1461def27116bff022c",
78+
strip_prefix = "rules_python-1.1.0",
79+
url = "https://github.com/bazelbuild/rules_python/releases/download/1.1.0/rules_python-1.1.0.tar.gz",
8880
)
8981

9082
load("@rules_python//python:repositories.bzl", "py_repositories")
@@ -100,6 +92,8 @@ load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
10092

10193
protobuf_deps()
10294

95+
load("@rules_java//java:repositories.bzl", "rules_java_toolchains")
96+
10397
rules_java_toolchains()
10498

10599
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies")
@@ -256,14 +250,14 @@ maximum available at the time of writing.
256250

257251
[ci-config]: ./.bazelci/presubmit.yml
258252

259-
| Bazel/Dependency | `rules_scala` 7.x | `rules_scala` 8.x<br/>(Coming soon! See bazelbuild/rules_scala#1482 and bazelbuild/rules_scala#1652.) |
260-
| :-: | :-: | :-: |
261-
| Bazel versions using Bzlmod<br/>(Coming soon! See bazelbuild/rules_scala#1482.) | 6.5.0, 7.5.0 | 7.5.0, 8.x |
262-
| Bazel versions using `WORKSPACE` | 6.5.0, 7.5.0 | 6.5.0, 7.5.0, 8.x<br/>(see the [notes on 6.5.0 compatibility](#6.5.0)) |
263-
| `protobuf` | v21.7<br/>(can support up to v25.5) | v29.3 |
264-
| `abseil-cpp` | 20220623.1 | 20250127.0 |
265-
| `rules_java` | 7.12.4 | 8.x |
266-
| `ScalaPB` | 0.11.17<br/>(0.9.8 for Scala 2.11) | 1.0.0-alpha.1 |
253+
| Bazel/Dependency | `rules_scala` 7.x |
254+
| :-: | :-: |
255+
| Bazel versions using Bzlmod<br/>(Coming soon! See bazelbuild/rules_scala#1482.) | 7.5.0, 8.x |
256+
| Bazel versions using `WORKSPACE` | 6.5.0, 7.5.0, 8.x<br/>(see the [notes on 6.5.0 compatibility](#6.5.0)) |
257+
| `protobuf` | v29.3 |
258+
| `abseil-cpp` | 20250127.0 |
259+
| `rules_java` | 8.9.0 |
260+
| `ScalaPB` | 1.0.0-alpha.1 |
267261

268262
## Usage with [bazel-deps](https://github.com/johnynek/bazel-deps)
269263

@@ -351,9 +345,13 @@ that folder.
351345
## Breaking changes in `rules_scala` 7.x
352346

353347
__The main objective of `rules_scala` 7.x is to enable existing users to migrate
354-
to Bazel 7 and Bzlmod.__ To facilitate a gradual migration, it remains
355-
compatible with both `WORKSPACE` and Bzlmod. However, it contains the following
356-
breaking changes when upgrading from `rules_scala` 6.x.
348+
to Bazel 8 and Bzlmod.__ To facilitate a gradual migration, it is compatible
349+
with both Bazel 7 and Bazel 8, and both `WORKSPACE` and Bzlmod. It remains
350+
compatible with Bazel 6.5.0 builds using `WORKSPACE` for the time being, but
351+
Bazel 6 is no longer officially supported.
352+
353+
`rules_java` 7.x contains the following breaking changes when upgrading from
354+
`rules_scala` 6.x.
357355

358356
### <a id="new-toolchains-api"></a>New `scala_toolchains()` API for `WORKSPACE`
359357

@@ -710,13 +708,6 @@ dependencies into scope. However, another way to fix this specific problem is to
710708
call `use_repo` for every builtin repository needed by the
711709
`setup_scala_toolchain()` call.
712710

713-
## Breaking changes coming in `rules_scala` 8.x
714-
715-
__The main objective of 8.x will be to enable existing users to migrate to Bazel
716-
8 and Bzlmod.__ To facilitate a gradual migration, it will remain compatible
717-
with both `WORKSPACE` and Bzlmod. However, it will contain the following
718-
breaking changes when upgrading from `rules_scala` 7.x.
719-
720711
### Replace some `$(location)` calls with `$(rootpath)` for Bazel 8
721712

722713
This isn't actually a `rules_scala` breakage, but a Bazel 8 breakage encountered
@@ -731,16 +722,16 @@ future compatibility.
731722

732723
### <a id="6.5.0"></a>Limited Bazel 6.5.0 compatibility
733724

734-
`rules_scala` 8.0.0 will not support Bzlmod with Bazel 6.5.0 because
735-
[Bazel 6.5.0 doesn't support 'use_repo_rule'](
736-
https://bazel.build/versions/6.5.0/rules/lib/globals), which
725+
__`rules_scala` 7.x officially drops support for Bazel 6.5.0.__ Bzlmod builds
726+
with Bazel 6.5.0 won't work at all because [Bazel 6.5.0 doesn't support
727+
'use_repo_rule']( https://bazel.build/versions/6.5.0/rules/lib/globals), which
737728
['rules_jvm_external' >= 6.3 requires](
738729
https://github.com/bazelbuild/rules_scala/issues/1482#issuecomment-2515496234).
739730

740-
`WORKSPACE` builds will continue to work with Bazel 6.5.0, but not out of the
741-
box. Per bazelbuild/rules_scala#1647, using Bazel 6.5.0 with `rules_scala` 8.x
742-
will require adding the following flags to `.bazelrc`, required by the newer
743-
`abseil-cpp` version used by `protobuf`:
731+
At the moment, `WORKSPACE` builds mostly continue to work with Bazel 6.5.0, but
732+
not out of the box, and may break at any time. Per bazelbuild/rules_scala#1647,
733+
such builds require adding the following flags to `.bazelrc`, required by the
734+
newer `abseil-cpp` version used by `protobuf`:
744735

745736
```txt
746737
common --enable_platform_specific_config
@@ -757,27 +748,46 @@ Note that this example uses `common:` config settings instead of `build:`. This
757748
seems to prevent invalidating the action cache between `bazel` runs, which
758749
improves performance.
759750

760-
### Bazel module compatibility levels between 7.0.0 and 8.0.0
751+
If you have another dependency that requires an earlier `protobuf` version, use
752+
the following maximum dependency versions:
761753

762-
`rules_scala` 7.0.0 and 8.0.0 will have different
763-
[`compatibility_level`](https://bazel.build/external/module#compatibility_level)
764-
values for their [`module()`](https://bazel.build/rules/lib/globals/module)
765-
directives. This is due to the gap in supported `protobuf` versions documented
766-
in bazelbuild/rules_scala#1647 (between v25.5 and v28) and dropping support for
767-
Bazel 6.5.0 Bzlmod builds.
754+
| Dependency | Max Bazel 6.5.0 compatible version | Reason |
755+
| :-: | :-: | :- |
756+
| `protobuf` | v25.6 | `ScalaPB` doesn't support `protobuf` v26 or v27. |
757+
| `abseil-cpp` | 20240722.0 | Latest that works with `protobuf` v25; requires C++ compiler flags. |
758+
| `rules_java` | 7.12.4 | 8.x requires `protobuf` v27 and later. |
759+
| `rules_cc` | 0.0.9 | 0.0.10 requires Bazel 7 to define `CcSharedLibraryHintInfo`.<br/>0.0.13 requires at least `protobuf` v27.0. |
760+
| `ScalaPB` | 0.11.17<br/>(0.9.8 for Scala 2.11) | Supports `protobuf` < v26. |
761+
762+
### `scala_proto` not supported for Scala 2.11
763+
764+
[ScalaPB 0.9.8](https://github.com/scalapb/ScalaPB/releases/tag/v0.9.8), the
765+
last version compatible with Scala 2.11, does not support `protobuf` >= v26.
766+
Since `rules_scala` now depends on a more recent `protobuf` version, we had to
767+
remove the Scala 2.11 test cases.
768768

769-
This will ensure any users attempting to mismatch `protobuf` and `rules_scala`
770-
versions will break during module resolution, rather than during a later
771-
execution step. (Though, as described in bazelbuild/rules_scala#1647, there are
772-
now measures in place to cause the build to crash during a mismatch instead of
773-
hanging.)
769+
Building `scala_proto` for Scala 2.11 requires [building with Bazel 6.5.0
770+
under `WORKSPACE`](#6.5.0), with the maximum dependency versions specified in
771+
that section. While this may continue to work for some time, it is not
772+
officially supported.
773+
774+
### Bazel module compatibility levels
775+
776+
`rules_scala` 7.0.0 will set the
777+
[`compatibility_level`](https://bazel.build/external/module#compatibility_level)
778+
value for its [`module()`](https://bazel.build/rules/lib/globals/module)
779+
directive. The `compatibility_level` for `rules_scala` will track major version
780+
numbers (per [semantic versioning](https://semver.org/)), and this `README` will
781+
clearly document the reason for the level bump. `compatibility_level` mismatches
782+
in the module graph will cause module resolution to fail, signaling the presence
783+
of known breaking changes.
774784

775785
The concept of proper `compatibility_level` usage is still up for discussion in
776-
bazelbuild/bazel#24302. The `compatibility_level` for `rules_scala`
777-
implementation will track major version numbers (per [semantic
778-
versioning](https://semver.org/)), and clearly document the reason for the level
779-
bump. If a version bump may break builds for any known reason, we will explain
780-
why up front instead of waiting for users to be surprised.
786+
bazelbuild/bazel#24302. However, the policy above favors forcing module
787+
resolution to fail, rather than allowing a later execution step to fail with a
788+
potentially confusing error message. If a version bump may break builds for any
789+
known reason, we will explain why up front instead of waiting for users to be
790+
surprised.
781791

782792
[A comment from #1647 illustrates how 'rules_erlang' fails due to
783793
'compatibility_level' conflicts][erlang]. The ['rules_erlang' 3.0.0 release

WORKSPACE

+6-8
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ load("//scala:deps.bzl", "rules_scala_dependencies")
55

66
rules_scala_dependencies()
77

8-
load(
9-
"@rules_java//java:repositories.bzl",
10-
"rules_java_dependencies",
11-
"rules_java_toolchains",
12-
)
8+
load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")
139

1410
rules_java_dependencies()
1511

@@ -19,9 +15,9 @@ bazel_skylib_workspace()
1915

2016
http_archive(
2117
name = "rules_python",
22-
sha256 = "ca2671529884e3ecb5b79d6a5608c7373a82078c3553b1fa53206e6b9dddab34",
23-
strip_prefix = "rules_python-0.38.0",
24-
url = "https://github.com/bazelbuild/rules_python/releases/download/0.38.0/rules_python-0.38.0.tar.gz",
18+
sha256 = "2ef40fdcd797e07f0b6abda446d1d84e2d9570d234fddf8fcd2aa262da852d1c",
19+
strip_prefix = "rules_python-1.2.0",
20+
url = "https://github.com/bazelbuild/rules_python/releases/download/1.2.0/rules_python-1.2.0.tar.gz",
2521
)
2622

2723
load("@rules_python//python:repositories.bzl", "py_repositories")
@@ -32,6 +28,8 @@ load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
3228

3329
protobuf_deps()
3430

31+
load("@rules_java//java:repositories.bzl", "rules_java_toolchains")
32+
3533
rules_java_toolchains()
3634

3735
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies")
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0

dt_patches/test_dt_patches/WORKSPACE

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ load("@rules_scala//scala:deps.bzl", "rules_scala_dependencies")
1111

1212
rules_scala_dependencies()
1313

14-
load("@rules_java//java:repositories.bzl", "rules_java_dependencies", "rules_java_toolchains")
14+
load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")
1515

1616
rules_java_dependencies()
1717

@@ -21,9 +21,9 @@ bazel_skylib_workspace()
2121

2222
http_archive(
2323
name = "rules_python",
24-
sha256 = "ca2671529884e3ecb5b79d6a5608c7373a82078c3553b1fa53206e6b9dddab34",
25-
strip_prefix = "rules_python-0.38.0",
26-
url = "https://github.com/bazelbuild/rules_python/releases/download/0.38.0/rules_python-0.38.0.tar.gz",
24+
sha256 = "2ef40fdcd797e07f0b6abda446d1d84e2d9570d234fddf8fcd2aa262da852d1c",
25+
strip_prefix = "rules_python-1.2.0",
26+
url = "https://github.com/bazelbuild/rules_python/releases/download/1.2.0/rules_python-1.2.0.tar.gz",
2727
)
2828

2929
load("@rules_python//python:repositories.bzl", "py_repositories")
@@ -34,6 +34,8 @@ load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
3434

3535
protobuf_deps()
3636

37+
load("@rules_java//java:repositories.bzl", "rules_java_toolchains")
38+
3739
rules_java_toolchains()
3840

3941
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies")
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0

dt_patches/test_dt_patches_user_srcjar/WORKSPACE

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ load("@rules_scala//scala:deps.bzl", "rules_scala_dependencies")
1111

1212
rules_scala_dependencies()
1313

14-
load("@rules_java//java:repositories.bzl", "rules_java_dependencies", "rules_java_toolchains")
14+
load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")
1515

1616
rules_java_dependencies()
1717

@@ -21,9 +21,9 @@ bazel_skylib_workspace()
2121

2222
http_archive(
2323
name = "rules_python",
24-
sha256 = "ca2671529884e3ecb5b79d6a5608c7373a82078c3553b1fa53206e6b9dddab34",
25-
strip_prefix = "rules_python-0.38.0",
26-
url = "https://github.com/bazelbuild/rules_python/releases/download/0.38.0/rules_python-0.38.0.tar.gz",
24+
sha256 = "2ef40fdcd797e07f0b6abda446d1d84e2d9570d234fddf8fcd2aa262da852d1c",
25+
strip_prefix = "rules_python-1.2.0",
26+
url = "https://github.com/bazelbuild/rules_python/releases/download/1.2.0/rules_python-1.2.0.tar.gz",
2727
)
2828

2929
load("@rules_python//python:repositories.bzl", "py_repositories")
@@ -34,6 +34,8 @@ load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
3434

3535
protobuf_deps()
3636

37+
load("@rules_java//java:repositories.bzl", "rules_java_toolchains")
38+
3739
rules_java_toolchains()
3840

3941
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies")

examples/crossbuild/.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0

examples/crossbuild/WORKSPACE

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ load("@rules_scala//scala:deps.bzl", "rules_scala_dependencies")
1111

1212
rules_scala_dependencies()
1313

14-
load("@rules_java//java:repositories.bzl", "rules_java_dependencies", "rules_java_toolchains")
14+
load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")
1515

1616
rules_java_dependencies()
1717

@@ -21,9 +21,9 @@ bazel_skylib_workspace()
2121

2222
http_archive(
2323
name = "rules_python",
24-
sha256 = "ca2671529884e3ecb5b79d6a5608c7373a82078c3553b1fa53206e6b9dddab34",
25-
strip_prefix = "rules_python-0.38.0",
26-
url = "https://github.com/bazelbuild/rules_python/releases/download/0.38.0/rules_python-0.38.0.tar.gz",
24+
sha256 = "2ef40fdcd797e07f0b6abda446d1d84e2d9570d234fddf8fcd2aa262da852d1c",
25+
strip_prefix = "rules_python-1.2.0",
26+
url = "https://github.com/bazelbuild/rules_python/releases/download/1.2.0/rules_python-1.2.0.tar.gz",
2727
)
2828

2929
load("@rules_python//python:repositories.bzl", "py_repositories")
@@ -34,6 +34,8 @@ load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
3434

3535
protobuf_deps()
3636

37+
load("@rules_java//java:repositories.bzl", "rules_java_toolchains")
38+
3739
rules_java_toolchains()
3840

3941
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies")

0 commit comments

Comments
 (0)