Reduce boilerplate code by using gerrit_plugin_dependency_tests

Change-Id: Id46b6ab88450c6dbf8850e7f3ba8f9f8efbddfa1
diff --git a/BUILD b/BUILD
index 72d61d8..950cad0 100644
--- a/BUILD
+++ b/BUILD
@@ -1,20 +1,9 @@
 load(
     "@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl",
     "gerrit_plugin",
+    "gerrit_plugin_dependency_tests",
     "gerrit_plugin_tests",
 )
-load(
-    "@com_googlesource_gerrit_bazlets//tools:in_gerrit_tree.bzl",
-    "in_gerrit_tree_enabled",
-)
-load(
-    "@com_googlesource_gerrit_bazlets//tools:runtime_jars_allowlist.bzl",
-    "runtime_jars_allowlist_test",
-)
-load(
-    "@com_googlesource_gerrit_bazlets//tools:runtime_jars_overlap.bzl",
-    "runtime_jars_overlap_test",
-)
 
 gerrit_plugin(
     name = "oauth",
@@ -52,17 +41,4 @@
     ],
 )
 
-runtime_jars_allowlist_test(
-    name = "check_oauth_third_party_runtime_jars",
-    allowlist = ":oauth_third_party_runtime_jars.allowlist.txt",
-    hint = ":check_oauth_third_party_runtime_jars_manifest",
-    target = ":oauth__plugin",
-)
-
-runtime_jars_overlap_test(
-    name = "oauth_no_overlap_with_gerrit",
-    against = "//:headless.war.jars.txt",
-    hint = "Exclude overlaps via maven.install(excluded_artifacts=[...]) and re-run this test.",
-    target = ":oauth__plugin",
-    target_compatible_with = in_gerrit_tree_enabled(),
-)
+gerrit_plugin_dependency_tests(plugin = "oauth")