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

rules_java v8.5.0 onwards requires a different WORKSPACE setup #1283

Open
hvadehra opened this issue Nov 21, 2024 · 0 comments
Open

rules_java v8.5.0 onwards requires a different WORKSPACE setup #1283

hvadehra opened this issue Nov 21, 2024 · 0 comments

Comments

@hvadehra
Copy link

hvadehra commented Nov 21, 2024

After moving all the rules / providers into @rules_java it became impossible to have both rules_java_dependencies and rules_java_toolchains in the same bzl file, without introducing a skyframe cycle.

With Bazel 8.0.0 (that includes rules_java 8.5.0), the WORKSPACE suffix uses the new bzl file(s). Any usages of the (deprecated) rules_java_dependencies function in repositories.bzl will cause Bazel to print:

DEBUG: .../external/rules_java/java/repositories.bzl:367:10: DEPRECATED: use rules_java_dependencies() from rules_java_deps.bzl

See https://github.com/bazelbuild/rules_java/releases/tag/8.5.0 for an example of the new setup.

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

No branches or pull requests

1 participant