Make jmods available from the jdk BUILD file

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

BEGIN_PUBLIC
Make jmods available from the jdk BUILD file (#184)

The PR at https://github.com/bazelbuild/rules_java/pull/135 looks dormant, this makes the change requested at https://github.com/bazelbuild/rules_java/pull/135#issuecomment-1797985514

I don't need the entire change here, having the jmods as a filegroup is sufficient for using jlink, but @cushon suggested adding the files as sources to the java_runtime as well, if I understood him correctly, so I did that too. If that's not necessary, let me know and I'll remove that part.

Closes #184
END_PUBLIC

COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_java/pull/184 from srdo-humio:stig/jdk-with-jmods e1513dbb7e67fe7da4782eb602a8564da19e9bf5
PiperOrigin-RevId: 631308886
Change-Id: I455d1ff6abd8d5b92e0e25f92caed796fe019aec
1 file changed
tree: aa6775c8be82b171d6d8c80fde7fa3d2010671ee
  1. .bazel_checkout/
  2. .bazelci/
  3. .bcr/
  4. .github/
  5. distro/
  6. examples/
  7. java/
  8. toolchains/
  9. .bazelrc
  10. .bazelversion
  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.