repositories.bzl: Use valid target name for services/xds

This fixes builds including dependencies from Maven that use
io.grpc:grpc-services or io.grpc:grpc-xds. It resolves this error:
```
no such target '@io_grpc_grpc_java//services:services': target 'services' not declared in package 'services' defined by services/BUILD.bazel and referenced by '@maven//:io_grpc_grpc_services'
```

Fixes #9419
This commit is contained in:
Eric Anderson 2022-08-02 10:28:44 -07:00 committed by GitHub
parent e26b6ee1d7
commit db320cefc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -84,10 +84,10 @@ IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS = {
"io.grpc:grpc-protobuf": "@io_grpc_grpc_java//protobuf",
"io.grpc:grpc-protobuf-lite": "@io_grpc_grpc_java//protobuf-lite",
"io.grpc:grpc-rls": "@io_grpc_grpc_java//rls",
"io.grpc:grpc-services": "@io_grpc_grpc_java//services",
"io.grpc:grpc-services": "@io_grpc_grpc_java//services:services_maven",
"io.grpc:grpc-stub": "@io_grpc_grpc_java//stub",
"io.grpc:grpc-testing": "@io_grpc_grpc_java//testing",
"io.grpc:grpc-xds": "@io_grpc_grpc_java//xds",
"io.grpc:grpc-xds": "@io_grpc_grpc_java//xds:xds_maven",
}
def grpc_java_repositories():

View File

@ -6,6 +6,7 @@ load("//:java_grpc_library.bzl", "java_grpc_library")
# Maven Central.
java_library(
name = "xds_maven",
visibility = ["//visibility:public"],
runtime_deps = [
":orca",
":xds",