xref: /aosp_15_r20/external/grpc-grpc-java/BUILD.bazel (revision e07d83d3ffcef9ecfc9f7f475418ec639ff0e5fe)
1# Copyright 2017 The gRPC Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15load(":java_grpc_library.bzl", "java_grpc_library")
16
17java_proto_library(
18    name = "api_proto_java",
19    deps = ["@com_google_protobuf//:api_proto"],
20)
21
22java_grpc_library(
23    name = "java_grpc_library__external_repo_test",
24    srcs = ["@com_google_protobuf//:api_proto"],
25    deps = [":api_proto_java"],
26)
27
28java_library(
29    name = "java_grpc_library_deps__do_not_reference",
30    visibility = ["//visibility:public"],
31    exports = [
32        "//api",
33        "//protobuf",
34        "//stub",
35        "//stub:javax_annotation",
36        "@com_google_code_findbugs_jsr305//jar",
37        "@com_google_guava_guava//jar",
38        "@com_google_protobuf//:protobuf_java",
39    ],
40)
41
42java_library(
43    name = "java_lite_grpc_library_deps__do_not_reference",
44    visibility = ["//visibility:public"],
45    exports = [
46        "//api",
47        "//protobuf-lite",
48        "//stub",
49        "//stub:javax_annotation",
50        "@com_google_code_findbugs_jsr305//jar",
51        "@com_google_guava_guava//jar",
52    ],
53)
54
55java_plugin(
56    name = "auto_value",
57    generates_api = 1,
58    processor_class = "com.google.auto.value.processor.AutoValueProcessor",
59    deps = ["@com_google_auto_value_auto_value//jar"],
60)
61
62java_library(
63    name = "auto_value_annotations",
64    exported_plugins = [":auto_value"],
65    neverlink = 1,
66    visibility = ["//:__subpackages__"],
67    exports = [
68        "@com_google_auto_value_auto_value_annotations//jar",
69        "@org_apache_tomcat_annotations_api//jar",  # @Generated for Java 9+
70    ],
71)
72