Make rules_java backwards compatible with Bazel 6.3.0

Copybara Import from https://github.com/bazelbuild/rules_java/pull/210

BEGIN_PUBLIC
Make rules_java backwards compatible with Bazel 6.3.0 (#210)

Move bootstrap_toolchain_type into rules_java. There are no uses outside
of rules_java. This fixes compatiblity with Bazel 6.3.0, which doesn't
have the definition.

Add back `_allowlist_function_transition`. Older versions of Bazel require it.

Add Bazel 6.3.0 to the CI.

Remove a couple of broken targets from toolchains/BUILD. Those were
broken becuase old JDKs were removed.

Closes #210
END_PUBLIC

COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_java/pull/210 from comius:backward-compatible-rules_java 393f270312cbb13fa5bc7807b93cf95f1e7b3969
PiperOrigin-RevId: 670415171
Change-Id: I7f42cc92bb7285cb51a2a1185695451a644d5b30
8 files changed
tree: 7f918d6a64ab5ffb052360963e90018c3295c5ba
  1. .bazel_checkout/
  2. .bazelci/
  3. .bcr/
  4. .github/
  5. distro/
  6. examples/
  7. java/
  8. test/
  9. toolchains/
  10. .bazelrc
  11. .gitignore
  12. AUTHORS
  13. BUILD
  14. CODEOWNERS
  15. CONTRIBUTING.md
  16. LICENSE
  17. MODULE.bazel
  18. README.md
  19. renovate.json
  20. WORKSPACE
  21. WORKSPACE.bzlmod
README.md

rules_java

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

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