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
This commit is contained in:
@@ -21,6 +21,7 @@ def gerrit_plugin(
|
||||
manifest_entries = [],
|
||||
dir_name = None,
|
||||
target_suffix = "",
|
||||
deploy_env = [],
|
||||
**kwargs):
|
||||
java_library(
|
||||
name = name + "__plugin",
|
||||
@@ -43,6 +44,7 @@ def gerrit_plugin(
|
||||
runtime_deps = [
|
||||
":%s__plugin" % name,
|
||||
] + static_jars,
|
||||
deploy_env = deploy_env,
|
||||
visibility = ["//visibility:public"],
|
||||
**kwargs
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user