Use of gerrit_plugin and gerrit_plugin_tests rules from bazlets Change-Id: Ic0947b43ea3525818af5c27004a317dcd64a691b
diff --git a/BUILD b/BUILD index 3caf093..053cfd2 100644 --- a/BUILD +++ b/BUILD
@@ -1,11 +1,5 @@ load("@rules_java//java:defs.bzl", "java_library") -load("//tools/bzl:junit.bzl", "junit_tests") -load( - "//tools/bzl:plugin.bzl", - "PLUGIN_DEPS", - "PLUGIN_TEST_DEPS", - "gerrit_plugin", -) +load("@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl", "gerrit_plugin", "gerrit_plugin_tests") gerrit_plugin( name = "delete-project", @@ -20,20 +14,11 @@ resources = glob(["src/main/resources/Documentation/*.md"]), ) -junit_tests( +gerrit_plugin_tests( name = "delete-project_tests", srcs = glob(["src/test/java/**/*.java"]), tags = ["delete-project"], deps = [ - ":delete-project__plugin_test_deps", - ], -) - -java_library( - name = "delete-project__plugin_test_deps", - testonly = 1, - visibility = ["//visibility:public"], - exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [ ":delete-project__plugin", ], )