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: 621489058
  • Loading branch information
Brotli authored and copybara-github committed Apr 3, 2024
1 parent 9351fa7 commit b6f2d49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions java/org/brotli/dec/build_defs.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Utilities for Java brotli tests."""

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

_TEST_JVM_FLAGS = [
"-DBROTLI_ENABLE_ASSERTS=true",
]
Expand Down Expand Up @@ -30,8 +32,7 @@ def brotli_java_test(name, main_class = None, jvm_flags = None, test_kotlin = Fa
test_class = test_package + "." + name
else:
test_class = None

native.java_test(
java_test(
name = name + "_32",
main_class = main_class,
test_class = test_class,
Expand All @@ -40,8 +41,7 @@ def brotli_java_test(name, main_class = None, jvm_flags = None, test_kotlin = Fa
runtime_deps = runtime_deps,
**kwargs
)

native.java_test(
java_test(
name = name + "_64",
main_class = main_class,
test_class = test_class,
Expand All @@ -52,7 +52,7 @@ def brotli_java_test(name, main_class = None, jvm_flags = None, test_kotlin = Fa
)

if test_kotlin:
native.java_test(
java_test(
name = name + "_kt",
main_class = main_class,
test_class = test_class,
Expand Down

0 comments on commit b6f2d49

Please sign in to comment.