blob: 52c4ea69f40d117215290da161cd3ceef1e214c0 [file] [log] [blame]
Carmelo Cascone1fb59ac2019-04-25 13:50:54 -07001load("//tools/build/bazel:osgi_java_library.bzl", "wrapped_osgi_jar")
2
3# Wrap protobuf and grpc-related JARs in OSGi-compatible ones, since the
4# original ones are built with Bazel and NOT imported via mvn.
5
6wrapped_osgi_jar(
7 # Differently from the official "grpc-core" package, here we also include
8 # "grpc-context" to solve the OSGI split-brain problem:
9 # https://github.com/grpc/grpc-java/issues/2727
10 # We use patched Bazel BUILD files to package together core and context (see
11 # tools/build/bazel/grpc_workspace.bzl). If you need grpc-context as a
12 # compile-time dependency, please use this one.
13 name = "io_grpc_grpc_core_context",
14 generate_pom = True,
15 jar = "@io_grpc_grpc_java//core",
16 visibility = ["//visibility:public"],
17 deps = [],
18)
19
20wrapped_osgi_jar(
21 name = "io_grpc_grpc_stub",
22 generate_pom = True,
23 jar = "@io_grpc_grpc_java//stub",
24 visibility = ["//visibility:public"],
25 deps = [],
26)
27
28wrapped_osgi_jar(
29 name = "io_grpc_grpc_netty",
30 generate_pom = True,
31 jar = "@io_grpc_grpc_java//netty",
32 visibility = ["//visibility:public"],
33 deps = [],
34)
35
36wrapped_osgi_jar(
37 name = "io_grpc_grpc_auth",
38 generate_pom = True,
39 jar = "@io_grpc_grpc_java//auth",
40 visibility = ["//visibility:public"],
41 deps = [],
42)
43
44wrapped_osgi_jar(
45 name = "io_grpc_grpc_protobuf",
46 generate_pom = True,
47 jar = "@io_grpc_grpc_java//protobuf",
48 visibility = ["//visibility:public"],
49 deps = [],
50)
51
52wrapped_osgi_jar(
53 name = "io_grpc_grpc_protobuf_lite",
54 generate_pom = True,
55 jar = "@io_grpc_grpc_java//protobuf-lite",
56 visibility = ["//visibility:public"],
57 deps = [],
58)
59
60wrapped_osgi_jar(
61 name = "com_google_protobuf_protobuf_java",
62 generate_pom = True,
63 jar = "@com_google_protobuf//:protobuf_java",
64 visibility = ["//visibility:public"],
65 deps = [],
66)