From b9cec6c73d4461c9bf062d1ea1f252919524222a Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Fri, 30 Mar 2018 21:32:15 -0700 Subject: [PATCH] java_grpc_library: re-add grpc-java repo to targets They were removed in 137c74d1 since it was believed they were unnecessary. However, since they are in a macro and not a rule, they are relative to the caller, not their definition. Added building the examples to the kokoro CI. Note that this means the examples are built twice: once in grpc-java's build and once in their own (because it has a WORKSPACE). Given that the Bazel build is our fastest build, this slowdown won't probably be an issue. --- buildscripts/kokoro/bazel.sh | 3 +++ java_grpc_library.bzl | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/buildscripts/kokoro/bazel.sh b/buildscripts/kokoro/bazel.sh index 9fbeebb5599..13bbaa4bf1a 100755 --- a/buildscripts/kokoro/bazel.sh +++ b/buildscripts/kokoro/bazel.sh @@ -5,3 +5,6 @@ cat /VERSION cd github/grpc-java bazel build ... + +cd examples +bazel build ... diff --git a/java_grpc_library.bzl b/java_grpc_library.bzl index 504831af8bc..2a8abb12dc7 100644 --- a/java_grpc_library.bzl +++ b/java_grpc_library.bzl @@ -107,9 +107,9 @@ def java_grpc_library(name, srcs, deps, flavor=None, ) added_deps = [ - "//core", - "//stub", - "//protobuf", + "@io_grpc_grpc_java//core", + "@io_grpc_grpc_java//stub", + "@io_grpc_grpc_java//protobuf", "@com_google_guava_guava//jar", ] if flavor == "normal":