Set `java` on remote JDKs

If the `java` attribute on `java_runtime` isn't set, Bazel guesses it
based on the host platform, which can be different from the execution
platform.

https://github.com/bazelbuild/bazel/blob/04a05677e4714434ec196c45a4ccbd8e0ef2f0ff/src/main/java/com/google/devtools/build/lib/rules/java/JavaRuntime.java#L46

Work towards https://github.com/bazelbuild/bazel/issues/19587
1 file changed
tree: 13f7e69d057e7ce4b7b3816cfbc402d4c4730694
  1. .bazelci/
  2. .bcr/
  3. distro/
  4. examples/
  5. java/
  6. toolchains/
  7. .bazelrc
  8. .bazelversion
  9. .gitignore
  10. AUTHORS
  11. BUILD
  12. CODEOWNERS
  13. CONTRIBUTING.md
  14. LICENSE
  15. MODULE.bazel
  16. README.md
  17. renovate.json
  18. WORKSPACE
  19. WORKSPACE.bzlmod
README.md

rules_java

  • Postsubmit Build status
  • Postsubmit + Current Bazel Incompatible Flags Build status

Java Rules for Bazel https://bazel.build.