Add exec constraints to local Java runtime toolchains

Fixes incorrect behavior in cross-platform build situations where a
local Java runtime would end up in the runfiles of a `java_binary`
target built for a platform on which it can't be executed.

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

rules_java

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

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