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