Add the repo rule `http_jar`

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

BEGIN_PUBLIC
Add the repo rule `http_jar` (#238)

The repo rule `http_jar` currently lives in `@bazel_tools`, which results in an implicit dependency on `rules_java` because it creates a repo with a BUILD file that uses `java_import`. So this repo rule really belongs in `rules_java`.

This PR copies it over from `@bazel_tools//tools/build_defs/repo:http.bzl` with minimal edits.

Closes #238
END_PUBLIC

COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_java/pull/238 from bazelbuild:wyv-http-jar 74d325a744cd7333e8669685d3ea1d3112a5078c
PiperOrigin-RevId: 693270198
Change-Id: I44f6d60301f27db8515243af54f79cb0ab4a7c0c
10 files changed
tree: 4f17122bb6449f0cf046aff7c81bb20452171767
  1. .bazel_checkout/
  2. .bazelci/
  3. .bcr/
  4. .github/
  5. distro/
  6. examples/
  7. java/
  8. test/
  9. toolchains/
  10. .bazelignore
  11. .bazelrc
  12. .gitignore
  13. AUTHORS
  14. BUILD
  15. CODEOWNERS
  16. CONTRIBUTING.md
  17. LICENSE
  18. MODULE.bazel
  19. README.md
  20. renovate.json
  21. WORKSPACE
  22. WORKSPACE.bzlmod
README.md

rules_java

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

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