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: 621168102
  • Loading branch information
java-team-github-bot authored and Guice Team committed Apr 2, 2024
1 parent cc5511b commit 55c4542
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

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

"""starlark marcors to generate test suites."""

_TEMPLATE = """package {VAR_PACKAGE};
Expand Down Expand Up @@ -88,8 +90,7 @@ def guice_test_suites(name, deps, srcs = None, args = [], suffix = "", sizes = N
test_classes = test_classes,
package_name = package_name.replace("/", "."),
)

native.java_test(
java_test(
name = "AllTestsSuite" + suffix,
test_class = (package_name + "/" + suite_name).replace("/", "."),
jvm_flags = flags,
Expand Down

0 comments on commit 55c4542

Please sign in to comment.