2024-03-29 05:33:32 +08:00
|
|
|
load("@rules_jvm_external//:defs.bzl", "artifact")
|
2019-03-16 02:43:13 +08:00
|
|
|
load("//:java_grpc_library.bzl", "java_grpc_library")
|
|
|
|
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2022-05-14 11:50:33 +08:00
|
|
|
# Mirrors the dependencies included in the artifact on Maven Central for usage
|
2023-01-04 02:12:18 +08:00
|
|
|
# with maven_install's override_targets. Should only be used as a dep for
|
|
|
|
# pre-compiled binaries on Maven Central.
|
2022-05-14 11:50:33 +08:00
|
|
|
java_library(
|
|
|
|
name = "services_maven",
|
2023-01-04 02:12:18 +08:00
|
|
|
exports = [
|
2022-05-14 11:50:33 +08:00
|
|
|
":admin",
|
|
|
|
":channelz",
|
|
|
|
":health",
|
|
|
|
":healthlb",
|
|
|
|
":metrics",
|
|
|
|
":metrics_internal",
|
|
|
|
":reflection",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
java_library(
|
|
|
|
name = "admin",
|
|
|
|
srcs = [
|
|
|
|
"src/main/java/io/grpc/services/AdminInterface.java",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":channelz",
|
|
|
|
"//api",
|
2024-03-29 05:33:32 +08:00
|
|
|
artifact("com.google.code.findbugs:jsr305"),
|
2022-05-14 11:50:33 +08:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
java_library(
|
|
|
|
name = "metrics",
|
|
|
|
srcs = [
|
|
|
|
"src/main/java/io/grpc/services/CallMetricRecorder.java",
|
|
|
|
"src/main/java/io/grpc/services/MetricRecorder.java",
|
2023-04-11 02:45:04 +08:00
|
|
|
"src/main/java/io/grpc/services/MetricRecorderHelper.java",
|
2024-03-29 05:33:32 +08:00
|
|
|
"src/main/java/io/grpc/services/MetricReport.java",
|
2022-05-14 11:50:33 +08:00
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"//api",
|
|
|
|
"//context",
|
2024-03-29 05:33:32 +08:00
|
|
|
artifact("com.google.code.findbugs:jsr305"),
|
|
|
|
artifact("com.google.errorprone:error_prone_annotations"),
|
|
|
|
artifact("com.google.guava:guava"),
|
2022-05-14 11:50:33 +08:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
java_library(
|
|
|
|
name = "metrics_internal",
|
|
|
|
srcs = [
|
|
|
|
"src/main/java/io/grpc/services/InternalCallMetricRecorder.java",
|
|
|
|
"src/main/java/io/grpc/services/InternalMetricRecorder.java",
|
|
|
|
],
|
|
|
|
visibility = ["//:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":metrics",
|
|
|
|
"//api",
|
|
|
|
"//context",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-03-16 02:43:13 +08:00
|
|
|
java_library(
|
|
|
|
name = "channelz",
|
|
|
|
srcs = [
|
2021-04-17 08:27:12 +08:00
|
|
|
"src/main/java/io/grpc/protobuf/services/ChannelzProtoUtil.java",
|
|
|
|
"src/main/java/io/grpc/protobuf/services/ChannelzService.java",
|
2019-03-16 02:43:13 +08:00
|
|
|
"src/main/java/io/grpc/services/ChannelzService.java",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":_channelz_java_grpc",
|
2019-04-13 08:37:13 +08:00
|
|
|
"//api",
|
2019-03-16 02:43:13 +08:00
|
|
|
"//stub",
|
|
|
|
"@com_google_protobuf//:protobuf_java",
|
|
|
|
"@com_google_protobuf//:protobuf_java_util",
|
|
|
|
"@io_grpc_grpc_proto//:channelz_java_proto",
|
2024-03-29 05:33:32 +08:00
|
|
|
artifact("com.google.code.findbugs:jsr305"),
|
|
|
|
artifact("com.google.guava:guava"),
|
2019-03-16 02:43:13 +08:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
java_library(
|
|
|
|
name = "reflection",
|
|
|
|
srcs = [
|
|
|
|
"src/main/java/io/grpc/protobuf/services/ProtoReflectionService.java",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":_reflection_java_grpc",
|
2019-04-13 08:37:13 +08:00
|
|
|
"//api",
|
2019-03-16 02:43:13 +08:00
|
|
|
"//protobuf",
|
|
|
|
"//stub",
|
|
|
|
"@com_google_protobuf//:protobuf_java",
|
|
|
|
"@com_google_protobuf//:protobuf_java_util",
|
|
|
|
"@io_grpc_grpc_proto//:reflection_java_proto_deprecated",
|
2024-03-29 05:33:32 +08:00
|
|
|
artifact("com.google.code.findbugs:jsr305"),
|
|
|
|
artifact("com.google.guava:guava"),
|
2019-03-16 02:43:13 +08:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-01-18 07:50:49 +08:00
|
|
|
java_library(
|
|
|
|
name = "health",
|
|
|
|
srcs = [
|
2021-04-17 08:27:12 +08:00
|
|
|
"src/main/java/io/grpc/protobuf/services/HealthServiceImpl.java",
|
|
|
|
"src/main/java/io/grpc/protobuf/services/HealthStatusManager.java",
|
2020-01-18 07:50:49 +08:00
|
|
|
"src/main/java/io/grpc/services/HealthStatusManager.java",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":_health_java_grpc",
|
|
|
|
"//api",
|
|
|
|
"//context",
|
|
|
|
"//stub",
|
|
|
|
"@io_grpc_grpc_proto//:health_java_proto",
|
2024-03-29 05:33:32 +08:00
|
|
|
artifact("com.google.code.findbugs:jsr305"),
|
|
|
|
artifact("com.google.guava:guava"),
|
2020-01-18 07:50:49 +08:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2022-05-14 11:50:33 +08:00
|
|
|
java_library(
|
|
|
|
name = "healthlb",
|
|
|
|
srcs = [
|
|
|
|
"src/main/java/io/grpc/protobuf/services/HealthCheckingLoadBalancerFactory.java",
|
|
|
|
"src/main/java/io/grpc/protobuf/services/HealthCheckingLoadBalancerUtil.java",
|
|
|
|
"src/main/java/io/grpc/protobuf/services/internal/HealthCheckingRoundRobinLoadBalancerProvider.java",
|
|
|
|
],
|
|
|
|
resources = [
|
|
|
|
"src/main/resources/META-INF/services/io.grpc.LoadBalancerProvider",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":_health_java_grpc",
|
|
|
|
"//api",
|
|
|
|
"//core:internal",
|
2023-07-18 02:45:31 +08:00
|
|
|
"//util",
|
2022-05-14 11:50:33 +08:00
|
|
|
"@io_grpc_grpc_proto//:health_java_proto",
|
2024-03-29 05:33:32 +08:00
|
|
|
artifact("com.google.code.findbugs:jsr305"),
|
|
|
|
artifact("com.google.guava:guava"),
|
2022-05-14 11:50:33 +08:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-03-16 02:43:13 +08:00
|
|
|
# These shouldn't be here, but this is better than having
|
|
|
|
# a circular dependency on grpc-proto and grpc-java.
|
|
|
|
|
|
|
|
java_grpc_library(
|
|
|
|
name = "_reflection_java_grpc",
|
|
|
|
srcs = ["@io_grpc_grpc_proto//:reflection_proto_deprecated"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = ["@io_grpc_grpc_proto//:reflection_java_proto_deprecated"],
|
|
|
|
)
|
|
|
|
|
|
|
|
java_grpc_library(
|
|
|
|
name = "_channelz_java_grpc",
|
|
|
|
srcs = ["@io_grpc_grpc_proto//:channelz_proto"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = ["@io_grpc_grpc_proto//:channelz_java_proto"],
|
|
|
|
)
|
2020-01-18 07:50:49 +08:00
|
|
|
|
|
|
|
java_grpc_library(
|
|
|
|
name = "_health_java_grpc",
|
|
|
|
srcs = ["@io_grpc_grpc_proto//:health_proto"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = ["@io_grpc_grpc_proto//:health_java_proto"],
|
|
|
|
)
|