mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
7de057192c
* Enhance grpc-test-utils and grpc-reverse-proxy to use Resources
This is the second of four PRs in which 6ea70c4b45
has been broken up to facilitate review.
The endgame is to have the non-repudiation prototype merged. The
grpc-test-utils and grpc-server-proxy libraries have been
enhanced to use the ResouceOwner/Resource abstraction to handle
the lifecycle of components, making resource management easier
when testing.
changelog_begin
changelog_end
* Solve shadowing issue with more specific imports
* Address https://github.com/digital-asset/daml/pull/8606#discussion_r563628581
51 lines
1.5 KiB
Python
51 lines
1.5 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",
|
|
"//libs-scala/resources",
|
|
"//libs-scala/resources-grpc",
|
|
"@maven//:com_google_guava_guava",
|
|
"@maven//:io_grpc_grpc_api",
|
|
"@maven//:io_grpc_grpc_services",
|
|
"@maven//:io_grpc_grpc_stub",
|
|
"@maven//:io_netty_netty_common",
|
|
"@maven//:io_netty_netty_transport",
|
|
],
|
|
)
|
|
|
|
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",
|
|
"//libs-scala/grpc-utils",
|
|
"//libs-scala/resources",
|
|
"//libs-scala/resources-grpc",
|
|
"@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",
|
|
"@maven//:io_netty_netty_common",
|
|
"@maven//:io_netty_netty_transport",
|
|
],
|
|
)
|