From 01bf4a47019bc1af32d5a4be0215a3d0f2db0412 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 3 May 2024 15:11:43 +0100 Subject: [PATCH] Debug --- examples/gazelle/MODULE.bazel | 7 +++++++ .../contrib_rules_jvm/examples/gazelle/BUILD.bazel | 13 +++++++++++++ 2 files changed, 20 insertions(+) diff --git a/examples/gazelle/MODULE.bazel b/examples/gazelle/MODULE.bazel index 0df2b3d5..6cca1997 100644 --- a/examples/gazelle/MODULE.bazel +++ b/examples/gazelle/MODULE.bazel @@ -16,6 +16,13 @@ bazel_dep( name = "bazel_skylib", version = "1.5.0", ) + +git_override( + module_name = "bazel_skylib", + remote = "https://github.com/illicitonion/bazel-skylib.git", + commit = "ce8deea5c27571e1924d31158ce43893a8f7262e", +) + bazel_dep( name = "rules_jvm_external", version = "6.0", diff --git a/examples/gazelle/src/test/com/github/bazel_contrib/contrib_rules_jvm/examples/gazelle/BUILD.bazel b/examples/gazelle/src/test/com/github/bazel_contrib/contrib_rules_jvm/examples/gazelle/BUILD.bazel index 60b833e5..5718724f 100644 --- a/examples/gazelle/src/test/com/github/bazel_contrib/contrib_rules_jvm/examples/gazelle/BUILD.bazel +++ b/examples/gazelle/src/test/com/github/bazel_contrib/contrib_rules_jvm/examples/gazelle/BUILD.bazel @@ -1,3 +1,4 @@ +load("@contrib_rules_jvm//java:defs.bzl", "java_test_suite") load("@bazel_skylib//rules:diff_test.bzl", "diff_test") genquery( @@ -12,3 +13,15 @@ diff_test( file1 = ":generated_targets", file2 = ":expected-query-output", ) + +java_test_suite( + name = "gazelle", + srcs = ["ExampleTest.java"], + runner = "junit5", + runtime_deps = [ + "@maven//:org_junit_jupiter_junit_jupiter_engine", + "@maven//:org_junit_platform_junit_platform_launcher", + "@maven//:org_junit_platform_junit_platform_reporting", + ], + deps = ["@maven//:org_junit_jupiter_junit_jupiter_api"], +)