forked from bazelbuild/rules_java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp_jar.bzl
More file actions
27 lines (18 loc) · 721 Bytes
/
Copy pathhttp_jar.bzl
File metadata and controls
27 lines (18 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""The http_jar repo rule, for downloading jars over HTTP.
### Setup
To use this rule in a module extension, load it in your .bzl file and then call it from your
extension's implementation function. For example:
```python
load("@rules_java//java:http_jar.bzl", "http_jar")
def _my_extension_impl(mctx):
http_jar(name = "foo", urls = [...])
my_extension = module_extension(implementation = _my_extension_impl)
```
Alternatively, you can directly call it your MODULE.bazel file with `use_repo_rule`:
```python
http_jar = use_repo_rule("@rules_java//java:http_jar.bzl", "http_jar")
http_jar(name = "foo", urls = [...])
```
"""
load("@compatibility_proxy//:proxy.bzl", _http_jar = "http_jar")
http_jar = _http_jar