-
-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load JavaInfo
and java_common
from rules_java
#1027
Conversation
This prepares rules_jvm_external for bazelbuild/bazel#19455 Closes bazel-contrib#967 which has been left in limbo.
@@ -11,18 +11,20 @@ bazel_dep( | |||
name = "platforms", | |||
version = "0.0.8", | |||
) | |||
bazel_dep( | |||
name = "rules_java", | |||
version = "7.3.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend staying on a lower version as this one requires Bazel 7. 7.2.0 still works with Bazel 6.4.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already use use_repo_rule
, so we're already expecting Bazel 7 when people use bzlmod
This change makes our Bazel build compatible with all the migration-ready `--incompatible` flags listed [here](https://github.com/bazelbuild/bazel/releases/tag/7.0.0) for Bazel 7.0, with a couple exceptions listed below. This was mostly just a matter of updating some of our dependencies to more recent versions. The two flags we cannot support yet are these: - `--incompatible_disallow_struct_provider_syntax`: Bazel itself appears not to support this one yet, see [here](bazelbuild/bazel#19467). - `--incompatible_stop_exporting_language_modules`: waiting on support in `rules_jvm_external`, see [here](bazel-contrib/rules_jvm_external#1027). I also deleted the broken `//:protobuf_nowkt` alias target, which was an oversight on my part from a previous change. PiperOrigin-RevId: 597076542
This change makes our Bazel build compatible with all the migration-ready `--incompatible` flags listed [here](https://github.com/bazelbuild/bazel/releases/tag/7.0.0) for Bazel 7.0, with a couple exceptions listed below. This was mostly just a matter of updating some of our dependencies to more recent versions. The two flags we cannot support yet are these: - `--incompatible_disallow_struct_provider_syntax`: Bazel itself appears not to support this one yet, see [here](bazelbuild/bazel#19467). - `--incompatible_stop_exporting_language_modules`: waiting on support in `rules_jvm_external`, see [here](bazel-contrib/rules_jvm_external#1027). I also deleted the broken `//:protobuf_nowkt` alias target, which was an oversight on my part from a previous change. PiperOrigin-RevId: 597076542
This prepares rules_jvm_external for bazelbuild/bazel#19455
Closes #967 which has been left in limbo.