• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""The http_jar repo rule, for downloading jars over HTTP.
2
3### Setup
4
5To use this rule in a module extension, load it in your .bzl file and then call it from your
6extension's implementation function. For example:
7
8```python
9load("@rules_java//java:http_jar.bzl", "http_jar")
10
11def _my_extension_impl(mctx):
12  http_jar(name = "foo", urls = [...])
13
14my_extension = module_extension(implementation = _my_extension_impl)
15```
16
17Alternatively, you can directly call it your MODULE.bazel file with `use_repo_rule`:
18
19```python
20http_jar = use_repo_rule("@rules_java//java:http_jar.bzl", "http_jar")
21http_jar(name = "foo", urls = [...])
22```
23"""
24
25load("@compatibility_proxy//:proxy.bzl", _http_jar = "http_jar")
26
27http_jar = _http_jar
28