Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

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: 621489359
  • Loading branch information
ise-crypto authored and copybara-github committed Apr 3, 2024
1 parent c7e4795 commit 775a9e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions java_src/tools/gen_java_test_rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.
#
################################################################################

"""Generate Java test rules from given test_files.
Instead of having to create one test rule per test in the BUILD file, this rule
Expand All @@ -22,6 +21,8 @@ files.
"""

load("//third_party/bazel_rules/rules_java/java:java_test.bzl", "java_test")

def gen_java_test_rules(
test_files,
deps,
Expand Down Expand Up @@ -70,7 +71,7 @@ def gen_java_test_rules(
java_class = _package_from_path(
native.package_name() + "/" + _strip_right(test, ".java"),
)
native.java_test(
java_test(
name = prefix + test,
runtime_deps = deps,
data = data,
Expand Down

0 comments on commit 775a9e6

Please sign in to comment.