Reduce boilerplate code by using gerrit_plugin_dependency_tests Change-Id: I1ace3bbd31afcc09cc98a54d6c789d344b31b955
diff --git a/BUILD b/BUILD index 1f61d27..ca59ddb 100644 --- a/BUILD +++ b/BUILD
@@ -1,18 +1,7 @@ load( "@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl", "gerrit_plugin", -) -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_dependency_tests", ) gerrit_plugin( @@ -31,17 +20,4 @@ ], ) -runtime_jars_allowlist_test( - name = "check_metrics-reporter-prometheus_third_party_runtime_jars", - allowlist = ":metrics-reporter-prometheus_third_party_runtime_jars.allowlist.txt", - hint = "plugins/metrics-reporter-prometheus:check_metrics-reporter-prometheus_third_party_runtime_jars_manifest", - target = ":metrics-reporter-prometheus__plugin", -) - -runtime_jars_overlap_test( - name = "metrics-reporter-prometheus_no_overlap_with_gerrit", - against = "//:headless.war.jars.txt", - hint = "Exclude overlaps via maven.install(excluded_artifacts=[...]) and re-run this test.", - target = ":metrics-reporter-prometheus__plugin", - target_compatible_with = in_gerrit_tree_enabled(), -) +gerrit_plugin_dependency_tests(plugin = "metrics-reporter-prometheus")