summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2018-08-14 08:10:37 +0200
committerDavid Ostrovsky <david@ostrovsky.org>2018-08-14 08:22:40 +0200
commit3ed0112115c50866c78bb425271d7153b266f00c (patch)
treedc694bb06ac59f5ca2f4ef7d3857cc44a6d04c15 /proto
parentf1d57801729ef199e55a89d3457294c45d33e21a (diff)
Bazel: Fix eclipse classpath generation
Since I819954da56 JUnit test is added that depends on reviewdb_proto, however, this new dependency wasn't added to Eclipse classpath generation machinery. Widen the visibility of that library and add it to the transitive closure of Eclipse classpath generation. Ad a side effect, we need to conditionally query compilation_info attribute during classpath generation, because java_proto_library doesn't expose this attribute. Bug: Issue 9564 Change-Id: I4ef1be9b1f7db9764f6bc8e5571da6ba6ac211f6
Diffstat (limited to 'proto')
-rw-r--r--proto/BUILD5
1 files changed, 4 insertions, 1 deletions
diff --git a/proto/BUILD b/proto/BUILD
index 0578ca577c..00d725aa8b 100644
--- a/proto/BUILD
+++ b/proto/BUILD
@@ -23,6 +23,9 @@ proto_library(
java_proto_library(
name = "reviewdb_java_proto",
- visibility = ["//javatests/com/google/gerrit/proto:__pkg__"],
+ visibility = [
+ "//javatests/com/google/gerrit/proto:__pkg__",
+ "//tools/eclipse:__pkg__",
+ ],
deps = [":reviewdb_proto"],
)