Reference `platformclasspath` in `@bazel_tools`

The `platformclasspath` rule in `@rules_java` always requires a
bootstrap Java runtime toolchain to be registered, but whether the
commonly used toolchain macros in `@bazel_tools` register this
toolchain depends on the version of Bazel that is running the build
and the version of `rules_java` it bundles as `@rules_java_builtin`.

In order to support all Bazel versions, reference the
`platformclasspath` in `@bazel_tools`, which in turn references the
corresponding target in `@rules_java_builtin`, which may or may not be
the current version of this code.
1 file changed
tree: 3fabee658f49ab06510db2bfbffe4c44bcf64b18
  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.