Skip to content

Commit

Permalink
Add load() statements for the builtin Bazel java rules
Browse files Browse the repository at this point in the history
Loads are being added in preparation for moving the rules out of Bazel and into `rules_java`.

PiperOrigin-RevId: 622214406
  • Loading branch information
Googler authored and copybara-github committed Apr 5, 2024
1 parent 73e608d commit a67db33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jsinterop_generator.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Examples:
"""

load("@bazel_common_javadoc//:javadoc.bzl", "javadoc_library")
load("@rules_java//java:defs.bzl", "java_library")
load("@com_google_j2cl//build_defs:rules.bzl", "j2cl_library")
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")

Expand Down Expand Up @@ -390,8 +391,7 @@ def jsinterop_generator(
else:
java_library_args["gwtxml"] = gwt_xml_file
java_library_args["constraints"] = ["gwt", "public"]

native.java_library(**java_library_args)
java_library(**java_library_args)

_extract_srcjar(
name = name + "_generated_files",
Expand Down
4 changes: 2 additions & 2 deletions jsinterop_generator_import.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ jsinterop_generator_import() target to be directly depended upon from jsinterop_
targets.
"""

load("@rules_java//java:defs.bzl", "java_library")
load("@com_google_j2cl//build_defs:rules.bzl", "j2cl_library")
load(":jsinterop_generator.bzl", "JS_INTEROP_RULE_NAME_PATTERN", "JsInteropGeneratorInfo")

Expand Down Expand Up @@ -62,8 +63,7 @@ def jsinterop_generator_import(
else:
java_library_args["gwtxml"] = gwt_xml
java_library_args["constraints"] = ["gwt", "public"]

native.java_library(**java_library_args)
java_library(**java_library_args)

j2cl_library(
name = "%s-j2cl" % name,
Expand Down

0 comments on commit a67db33

Please sign in to comment.