Use of gerrit_plugin and gerrit_plugin_tests rules from bazlets

Change-Id: If025b0bba51fe3e9e517d1f20e795f5654fd6c7a
diff --git a/BUILD b/BUILD
index c864ea4..1be61dd 100644
--- a/BUILD
+++ b/BUILD
@@ -1,10 +1,4 @@
-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 = "download-commands",
@@ -16,12 +10,12 @@
     resources = glob(["src/main/resources/**/*"]),
 )
 
-junit_tests(
+gerrit_plugin_tests(
     name = "download-commands_tests",
     size = "small",
     srcs = glob(["src/test/java/**/*.java"]),
     tags = ["download-commands"],
-    deps = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
+    deps = [
         ":download-commands__plugin",
     ],
 )