mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
9ed787cb3d
* Factor 'withServices' out of ServerReflectionClientSpec * Add grpc-reverse-proxy with optional server interceptors changelog_begin changelog_end * Switch from Protobuf byte strings to native byte arrays * Fix year in copyright headers * Address https://github.com/digital-asset/daml/pull/8481#discussion_r555915935 * Add missing maven_coordinates tag * Address https://github.com/digital-asset/daml/pull/8481#discussion_r555916684
42 lines
1.2 KiB
Python
42 lines
1.2 KiB
Python
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
load(
|
|
"//bazel_tools:scala.bzl",
|
|
"da_scala_library",
|
|
"da_scala_test_suite",
|
|
)
|
|
|
|
da_scala_library(
|
|
name = "grpc-reverse-proxy",
|
|
srcs = glob(["src/main/scala/**/*.scala"]),
|
|
tags = ["maven_coordinates=com.daml:grpc-reverse-proxy:__VERSION__"],
|
|
visibility = [
|
|
"//:__subpackages__",
|
|
],
|
|
deps = [
|
|
"//libs-scala/grpc-server-reflection-client",
|
|
"@maven//:com_google_guava_guava",
|
|
"@maven//:io_grpc_grpc_api",
|
|
"@maven//:io_grpc_grpc_services",
|
|
"@maven//:io_grpc_grpc_stub",
|
|
],
|
|
)
|
|
|
|
da_scala_test_suite(
|
|
name = "test",
|
|
srcs = glob(["src/test/scala/**/*.scala"]),
|
|
versioned_scala_deps = {
|
|
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
|
|
},
|
|
deps = [
|
|
":grpc-reverse-proxy",
|
|
"//libs-scala/grpc-test-utils",
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
"@maven//:io_grpc_grpc_api",
|
|
"@maven//:io_grpc_grpc_core",
|
|
"@maven//:io_grpc_grpc_services",
|
|
"@maven//:io_grpc_grpc_stub",
|
|
],
|
|
)
|