mirror of https://github.com/grpc/grpc-java.git
examples: move alts bazel and rm alts from pom.xml
This commit is contained in:
parent
dd89dba8e9
commit
00b4b8870b
|
|
@ -7,4 +7,9 @@ cd github/grpc-java
|
||||||
bazel build ...
|
bazel build ...
|
||||||
|
|
||||||
cd examples
|
cd examples
|
||||||
|
bazel clean
|
||||||
|
bazel build ...
|
||||||
|
|
||||||
|
cd example-alts
|
||||||
|
bazel clean
|
||||||
bazel build ...
|
bazel build ...
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@ java_library(
|
||||||
"@com_google_j2objc_j2objc_annotations//jar",
|
"@com_google_j2objc_j2objc_annotations//jar",
|
||||||
"@com_google_protobuf//:protobuf_java",
|
"@com_google_protobuf//:protobuf_java",
|
||||||
"@com_google_protobuf//:protobuf_java_util",
|
"@com_google_protobuf//:protobuf_java_util",
|
||||||
"@io_grpc_grpc_java//alts",
|
|
||||||
"@io_grpc_grpc_java//core",
|
"@io_grpc_grpc_java//core",
|
||||||
"@io_grpc_grpc_java//netty",
|
"@io_grpc_grpc_java//netty",
|
||||||
"@io_grpc_grpc_java//protobuf",
|
"@io_grpc_grpc_java//protobuf",
|
||||||
|
|
@ -99,28 +98,6 @@ java_binary(
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
java_binary(
|
|
||||||
name = "hello-world-alts-client",
|
|
||||||
testonly = 1,
|
|
||||||
main_class = "io.grpc.examples.alts.HelloWorldAltsClient",
|
|
||||||
runtime_deps = [
|
|
||||||
":examples",
|
|
||||||
"@io_grpc_grpc_java//alts",
|
|
||||||
"@io_grpc_grpc_java//netty",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
java_binary(
|
|
||||||
name = "hello-world-alts-server",
|
|
||||||
testonly = 1,
|
|
||||||
main_class = "io.grpc.examples.alts.HelloWorldAltsServer",
|
|
||||||
runtime_deps = [
|
|
||||||
":examples",
|
|
||||||
"@io_grpc_grpc_java//alts",
|
|
||||||
"@io_grpc_grpc_java//netty",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
java_binary(
|
java_binary(
|
||||||
name = "route-guide-client",
|
name = "route-guide-client",
|
||||||
testonly = 1,
|
testonly = 1,
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,53 @@
|
||||||
|
load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library")
|
||||||
|
|
||||||
|
proto_library(
|
||||||
|
name = "helloworld_proto",
|
||||||
|
srcs = ["src/main/proto/helloworld/helloworld.proto"],
|
||||||
|
)
|
||||||
|
|
||||||
|
java_proto_library(
|
||||||
|
name = "helloworld_java_proto",
|
||||||
|
deps = [":helloworld_proto"],
|
||||||
|
)
|
||||||
|
|
||||||
|
java_grpc_library(
|
||||||
|
name = "helloworld_java_grpc",
|
||||||
|
srcs = [":helloworld_proto"],
|
||||||
|
deps = [":helloworld_java_proto"],
|
||||||
|
)
|
||||||
|
|
||||||
|
java_library(
|
||||||
|
name = "example-alts",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(
|
||||||
|
["src/main/java/**/*.java"],
|
||||||
|
),
|
||||||
|
deps = [
|
||||||
|
":helloworld_java_grpc",
|
||||||
|
":helloworld_java_proto",
|
||||||
|
"@io_grpc_grpc_java//alts",
|
||||||
|
"@io_grpc_grpc_java//core",
|
||||||
|
"@io_grpc_grpc_java//protobuf",
|
||||||
|
"@io_grpc_grpc_java//stub",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
java_binary(
|
||||||
|
name = "hello-world-alts-client",
|
||||||
|
testonly = 1,
|
||||||
|
main_class = "io.grpc.examples.alts.HelloWorldAltsClient",
|
||||||
|
runtime_deps = [
|
||||||
|
":example-alts",
|
||||||
|
"@io_grpc_grpc_java//netty",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
java_binary(
|
||||||
|
name = "hello-world-alts-server",
|
||||||
|
testonly = 1,
|
||||||
|
main_class = "io.grpc.examples.alts.HelloWorldAltsServer",
|
||||||
|
runtime_deps = [
|
||||||
|
":example-alts",
|
||||||
|
"@io_grpc_grpc_java//netty",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
workspace(name = "example_alts")
|
||||||
|
|
||||||
|
# For released versions, use the tagged git-repository:
|
||||||
|
# git_repository(
|
||||||
|
# name = "io_grpc_grpc_java",
|
||||||
|
# remote = "https://github.com/grpc/grpc-java.git",
|
||||||
|
# tag = "<TAG>",
|
||||||
|
# )
|
||||||
|
local_repository(
|
||||||
|
name = "io_grpc_grpc_java",
|
||||||
|
path = "../..",
|
||||||
|
)
|
||||||
|
|
||||||
|
load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories")
|
||||||
|
|
||||||
|
grpc_java_repositories()
|
||||||
|
|
@ -35,11 +35,6 @@
|
||||||
<artifactId>grpc-stub</artifactId>
|
<artifactId>grpc-stub</artifactId>
|
||||||
<version>${grpc.version}</version>
|
<version>${grpc.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>io.grpc</groupId>
|
|
||||||
<artifactId>grpc-alts</artifactId>
|
|
||||||
<version>${grpc.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>javax.annotation</groupId>
|
<groupId>javax.annotation</groupId>
|
||||||
<artifactId>javax.annotation-api</artifactId>
|
<artifactId>javax.annotation-api</artifactId>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue