File: BUILD.bazel

package info (click to toggle)
grpc-java 1.26.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,852 kB
  • sloc: java: 146,813; cpp: 1,174; xml: 1,037; sh: 662; makefile: 40; python: 40
file content (56 lines) | stat: -rw-r--r-- 1,328 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
load("@rules_proto//proto:defs.bzl", "proto_library")
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-tls",
    testonly = 1,
    srcs = glob(
        ["src/main/java/**/*.java"],
    ),
    runtime_deps = [
        "@io_netty_netty_tcnative_boringssl_static//jar",
    ],
    deps = [
        ":helloworld_java_grpc",
        ":helloworld_java_proto",
        "@io_grpc_grpc_java//api",
        "@io_grpc_grpc_java//netty",
        "@io_grpc_grpc_java//protobuf",
        "@io_grpc_grpc_java//stub",
        "@io_netty_netty_handler//jar",
    ],
)

java_binary(
    name = "hello-world-tls-client",
    testonly = 1,
    main_class = "io.grpc.examples.helloworldtls.HelloWorldClientTls",
    runtime_deps = [
        ":example-tls",
    ],
)

java_binary(
    name = "hello-world-tls-server",
    testonly = 1,
    main_class = "io.grpc.examples.helloworldtls.HelloWorldServerTls",
    runtime_deps = [
        ":example-tls",
    ],
)