Reduce boilerplate code by using gerrit_plugin_dependency_tests Change-Id: I4267620e7e2fa3ba3e8db58aaa2d4b759fc20c98
diff --git a/BUILD b/BUILD index 6858f94..99401ac 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 = "javamelody", @@ -44,17 +33,4 @@ ], ) -runtime_jars_allowlist_test( - name = "check_javamelody_third_party_runtime_jars", - allowlist = ":javamelody_third_party_runtime_jars.allowlist.txt", - hint = ":check_javamelody_third_party_runtime_jars_manifest", - target = ":javamelody__plugin", -) - -runtime_jars_overlap_test( - name = "javamelody_no_overlap_with_gerrit", - against = "//:headless.war.jars.txt", - hint = "Exclude overlaps via maven.install(excluded_artifacts=[...]) and re-run this test.", - target = ":javamelody__plugin", - target_compatible_with = in_gerrit_tree_enabled(), -) +gerrit_plugin_dependency_tests(plugin = "javamelody")