all: rename Bazel workspace to io_grpc_grpc_java

Fixes #4095
This commit is contained in:
Carmi Grushko 2018-02-22 16:59:45 -05:00 committed by Carl Mastrangelo
parent 713ac0a886
commit 2db5e0dc35
3 changed files with 14 additions and 16 deletions

View File

@ -1,4 +1,4 @@
workspace(name = "grpc_java") workspace(name = "io_grpc_grpc_java")
load("//:repositories.bzl", "grpc_java_repositories") load("//:repositories.bzl", "grpc_java_repositories")

View File

@ -1,4 +1,4 @@
load("@grpc_java//:java_grpc_library.bzl", "java_grpc_library") load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library")
proto_library( proto_library(
name = "helloworld_proto", name = "helloworld_proto",
@ -71,11 +71,11 @@ java_library(
"@com_google_guava_guava//jar", "@com_google_guava_guava//jar",
"@com_google_protobuf//:protobuf_java", "@com_google_protobuf//:protobuf_java",
"@com_google_protobuf//:protobuf_java_util", "@com_google_protobuf//:protobuf_java_util",
"@grpc_java//alts", "@io_grpc_grpc_java//alts",
"@grpc_java//core", "@io_grpc_grpc_java//core",
"@grpc_java//netty", "@io_grpc_grpc_java//netty",
"@grpc_java//protobuf", "@io_grpc_grpc_java//protobuf",
"@grpc_java//stub", "@io_grpc_grpc_java//stub",
"@io_netty_netty_handler//jar", "@io_netty_netty_handler//jar",
], ],
) )
@ -104,8 +104,8 @@ java_binary(
main_class = "io.grpc.examples.alts.HelloWorldAltsClient", main_class = "io.grpc.examples.alts.HelloWorldAltsClient",
runtime_deps = [ runtime_deps = [
":examples", ":examples",
"@grpc_java//alts", "@io_grpc_grpc_java//alts",
"@grpc_java//netty", "@io_grpc_grpc_java//netty",
], ],
) )
@ -115,10 +115,9 @@ java_binary(
main_class = "io.grpc.examples.alts.HelloWorldAltsServer", main_class = "io.grpc.examples.alts.HelloWorldAltsServer",
runtime_deps = [ runtime_deps = [
":examples", ":examples",
"@grpc_java//alts", "@io_grpc_grpc_java//alts",
"@grpc_java//netty", "@io_grpc_grpc_java//netty",
], ],
) )
java_binary( java_binary(

View File

@ -2,16 +2,15 @@ workspace(name = "examples")
# For released versions, use the tagged git-repository: # For released versions, use the tagged git-repository:
# git_repository( # git_repository(
# name = "grpc_java", # name = "io_grpc_grpc_java",
# remote = "https://github.com/grpc/grpc-java.git", # remote = "https://github.com/grpc/grpc-java.git",
# tag = "<TAG>", # tag = "<TAG>",
# ) # )
local_repository( local_repository(
name = "grpc_java", name = "io_grpc_grpc_java",
path = "..", path = "..",
) )
load("@grpc_java//:repositories.bzl", "grpc_java_repositories") load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories")
grpc_java_repositories() grpc_java_repositories()