Adapt gerrit_plugin rule to removal of resource_jars attribute

In Bazel release 5.0 resource_jars attribute was removed: [1]. Apply the
same fix that core did in Change I3b49112b65a4.

Preserve the attribute as-is to not change the caller sites and pass in
the resource jars collection to runtime_deps as recommended.

[1] https://github.com/bazelbuild/bazel/issues/13221

Change-Id: Id47aaf60afaa637e9b233f925285c8d2a79a756e
diff --git a/gerrit_plugin.bzl b/gerrit_plugin.bzl
index 4021733..2dd96d5 100644
--- a/gerrit_plugin.bzl
+++ b/gerrit_plugin.bzl
@@ -21,11 +21,11 @@
         provided_deps = [],
         srcs = [],
         resources = [],
+        resource_jars = [],
         manifest_entries = [],
         dir_name = None,
         target_suffix = "",
         **kwargs):
-    static_jars = []
 
     if not dir_name:
         dir_name = name
@@ -44,7 +44,7 @@
         main_class = "Dummy",
         runtime_deps = [
             ":%s__plugin" % name,
-        ] + static_jars,
+        ] + resource_jars,
         visibility = ["//visibility:public"],
     )