Skip to content
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

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

shs96c
Copy link
Collaborator

@shs96c shs96c commented Jan 5, 2024

This prepares rules_jvm_external for bazelbuild/bazel#19455

Closes #967 which has been left in limbo.

This prepares rules_jvm_external for bazelbuild/bazel#19455

Closes bazel-contrib#967 which has been left in limbo.
@shs96c shs96c added this to the Release 6.0 milestone Jan 5, 2024
@@ -11,18 +11,20 @@ bazel_dep(
name = "platforms",
version = "0.0.8",
)
bazel_dep(
name = "rules_java",
version = "7.3.2",
Copy link
Member

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.

Copy link
Collaborator Author

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

copybara-service bot pushed a commit to protocolbuffers/protobuf that referenced this pull request Jan 10, 2024
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
copybara-service bot pushed a commit to protocolbuffers/protobuf that referenced this pull request Jan 10, 2024
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
@shs96c shs96c merged commit b0c1d02 into bazel-contrib:master Jan 15, 2024
8 checks passed
@shs96c shs96c deleted the load-from-java-info branch January 15, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants