Skip to content

Commit 1c17b87

Browse files
committed
http_jar repositories now load java_import from rules_java
Given the Starlarkification of the Java rules, the BUILD file generated by http_jar() should no longer assume that java_import is available as a Bazel builtin.
1 parent ee0bf83 commit 1c17b87

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/test/tools/bzlmod/MODULE.bazel.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/build_defs/repo/http.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ def _http_file_impl(ctx):
191191
return _update_integrity_attr(ctx, _http_file_attrs, download_info)
192192

193193
_HTTP_JAR_BUILD = """\
194+
load("@rules_java//java:java_import.bzl", "java_import")
195+
194196
package(default_visibility = ["//visibility:public"])
195197
196198
java_import(

0 commit comments

Comments
 (0)