Skip to content

Commit 664f1fc

Browse files
committedNov 5, 2024·
xds: Remove Bazel dependency on xds v2
feab4e5 removed xds v2 for the Gradle build. Testing with a deploy.jar, I see the same 4 MB size reduction (31 -> 27 MB) here. While an orca dependency is deleted in this commit, it is only a direct dependency. It remains in the :orca target, so doesn't contribute a size reduction.
1 parent 8859686 commit 664f1fc

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed
 

‎xds/BUILD.bazel

-25
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ java_library(
2727
]),
2828
visibility = ["//visibility:public"],
2929
deps = [
30-
":envoy_service_discovery_v2_java_grpc",
3130
":envoy_service_discovery_v3_java_grpc",
32-
":envoy_service_load_stats_v2_java_grpc",
3331
":envoy_service_load_stats_v3_java_grpc",
3432
":envoy_service_status_v3_java_grpc",
3533
":orca",
@@ -64,20 +62,11 @@ java_proto_library(
6462
name = "xds_protos_java",
6563
deps = [
6664
"@com_github_cncf_xds//udpa/type/v1:pkg",
67-
"@com_github_cncf_xds//xds/data/orca/v3:pkg",
68-
"@com_github_cncf_xds//xds/service/orca/v3:pkg",
6965
"@com_github_cncf_xds//xds/type/v3:pkg",
7066
"@envoy_api//envoy/admin/v3:pkg",
71-
"@envoy_api//envoy/api/v2:pkg",
72-
"@envoy_api//envoy/api/v2/core:pkg",
73-
"@envoy_api//envoy/api/v2/endpoint:pkg",
74-
"@envoy_api//envoy/config/cluster/aggregate/v2alpha:pkg",
7567
"@envoy_api//envoy/config/cluster/v3:pkg",
7668
"@envoy_api//envoy/config/core/v3:pkg",
7769
"@envoy_api//envoy/config/endpoint/v3:pkg",
78-
"@envoy_api//envoy/config/filter/http/fault/v2:pkg",
79-
"@envoy_api//envoy/config/filter/http/router/v2:pkg",
80-
"@envoy_api//envoy/config/filter/network/http_connection_manager/v2:pkg",
8170
"@envoy_api//envoy/config/listener/v3:pkg",
8271
"@envoy_api//envoy/config/rbac/v3:pkg",
8372
"@envoy_api//envoy/config/route/v3:pkg",
@@ -94,34 +83,20 @@ java_proto_library(
9483
"@envoy_api//envoy/extensions/load_balancing_policies/round_robin/v3:pkg",
9584
"@envoy_api//envoy/extensions/load_balancing_policies/wrr_locality/v3:pkg",
9685
"@envoy_api//envoy/extensions/transport_sockets/tls/v3:pkg",
97-
"@envoy_api//envoy/service/discovery/v2:pkg",
9886
"@envoy_api//envoy/service/discovery/v3:pkg",
99-
"@envoy_api//envoy/service/load_stats/v2:pkg",
10087
"@envoy_api//envoy/service/load_stats/v3:pkg",
10188
"@envoy_api//envoy/service/status/v3:pkg",
10289
"@envoy_api//envoy/type/matcher/v3:pkg",
10390
"@envoy_api//envoy/type/v3:pkg",
10491
],
10592
)
10693

107-
java_grpc_library(
108-
name = "envoy_service_discovery_v2_java_grpc",
109-
srcs = ["@envoy_api//envoy/service/discovery/v2:pkg"],
110-
deps = [":xds_protos_java"],
111-
)
112-
11394
java_grpc_library(
11495
name = "envoy_service_discovery_v3_java_grpc",
11596
srcs = ["@envoy_api//envoy/service/discovery/v3:pkg"],
11697
deps = [":xds_protos_java"],
11798
)
11899

119-
java_grpc_library(
120-
name = "envoy_service_load_stats_v2_java_grpc",
121-
srcs = ["@envoy_api//envoy/service/load_stats/v2:pkg"],
122-
deps = [":xds_protos_java"],
123-
)
124-
125100
java_grpc_library(
126101
name = "envoy_service_load_stats_v3_java_grpc",
127102
srcs = ["@envoy_api//envoy/service/load_stats/v3:pkg"],

0 commit comments

Comments
 (0)
Please sign in to comment.