Bazel: Support deploy_env argument in gerrit plugin rule

This allows us to exclude unwanted transitive dependencies in plugin
final artifacts. Most prominent example is to exclude the dependency
on protobuf-java library for generated proto java libraries.

Change-Id: I7b3f8e14fb7f66649c2bc2fe72ba090a0269ff57
diff --git a/tools/bzl/plugin.bzl b/tools/bzl/plugin.bzl
index ed64d1b..64a6e22 100644
--- a/tools/bzl/plugin.bzl
+++ b/tools/bzl/plugin.bzl
@@ -21,6 +21,7 @@
         manifest_entries = [],
         dir_name = None,
         target_suffix = "",
+        deploy_env = [],
         **kwargs):
     java_library(
         name = name + "__plugin",
@@ -43,6 +44,7 @@
         runtime_deps = [
             ":%s__plugin" % name,
         ] + static_jars,
+        deploy_env = deploy_env,
         visibility = ["//visibility:public"],
         **kwargs
     )