Copybara Merge: https://github.com/bazelbuild/rules_java/pull/114

BEGIN_PUBLIC
Copybara import of the project:

--
cb82ccbd98726041ea441f4751bb0cd1d0020cd1 by Fabian Meumertzheim <fabian@meumertzhe.im>:

Obtain bootstrap class path from dedicated runtime toolchain type

This decouples the concepts of a Java runtime used to run on the target
platform from the Java runtime that provides the bootstrap class path
used during compilation.

The former needs constraints on the target platform, whereas the latter
should not have any constraints on the target platform to allow for
cross-compilation to target platforms for which a JDK runtime is not
available (e.g. Android).

Work towards #17085
Work towards https://github.com/bazelbuild/rules_java/issues/64
Split off from #18262

--
ab3c792bbbe46022600096a2ae7a354c4467c790 by Fabian Meumertzheim <fabian@meumertzhe.im>:

Register toolchains in MODULE.bazel

--
f2218a4c4ee30be09c255415296cc5d726e5990d by Fabian Meumertzheim <fabian@meumertzhe.im>:

Update Bazel to 7.0.0-pre.20230710.5

--
02947909441e6df3452d1a782b3d78ece525735e by Fabian Meumertzheim <fabian@meumertzhe.im>:

Add missing WORKSPACE `register_toolchains` calls

END_PUBLIC

COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_java/pull/114 from fmeum:17085-bootstrap-toolchain 02947909441e6df3452d1a782b3d78ece525735e
PiperOrigin-RevId: 554446834
Change-Id: I961944be5bfe461528e94c85247f6c36236a561d
7 files changed
tree: 0855c8b0f2f4e2943ec35124f3bd6ee389d8a927
  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.