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: 621167915
  • Loading branch information
ruizhi-google authored and copybara-github committed Apr 3, 2024
1 parent c698ba4 commit 711d68b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gen_sample_targets.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Build extensions to simplify generating sample build/test targets."""

load("//third_party/bazel_rules/rules_java/java:java_library.bzl", "java_library")
load("//tools/build_defs/build_test:build_test.bzl", "build_test")

COMMON_JAVA_SAMPLE_DEPS = [
Expand Down Expand Up @@ -42,8 +43,7 @@ def gen_java_targets(name):
"//google/ads/xfa/dfareporting/op:dfareporting-java-client-%s" % java_client_version,
],
}

native.java_library(**library_args)
java_library(**library_args)
build_test(
name = "%s-test" % versioned_rule_name,
targets = [":%s" % versioned_rule_name],
Expand Down

0 comments on commit 711d68b

Please sign in to comment.