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

Commit 775a9e6

Browse files
ise-cryptocopybara-github
authored andcommitted
Add load() statements for the builtin Bazel java rules
Loads are being added in preparation for moving the rules out of Bazel and into `rules_java`. PiperOrigin-RevId: 621489359
1 parent c7e4795 commit 775a9e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

java_src/tools/gen_java_test_rules.bzl

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414
#
1515
################################################################################
16-
1716
"""Generate Java test rules from given test_files.
1817
1918
Instead of having to create one test rule per test in the BUILD file, this rule
@@ -22,6 +21,8 @@ files.
2221
2322
"""
2423

24+
load("//third_party/bazel_rules/rules_java/java:java_test.bzl", "java_test")
25+
2526
def gen_java_test_rules(
2627
test_files,
2728
deps,
@@ -70,7 +71,7 @@ def gen_java_test_rules(
7071
java_class = _package_from_path(
7172
native.package_name() + "/" + _strip_right(test, ".java"),
7273
)
73-
native.java_test(
74+
java_test(
7475
name = prefix + test,
7576
runtime_deps = deps,
7677
data = data,

0 commit comments

Comments
 (0)