mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
fc69db02b4
* Add a library that defines Resource factory methods for gRPC servers and channels
This is the first of four PRs in which 6ea70c4b45
has been broken up to facilitate review.
The endgame is to have the non-repudiation prototype merged. These
factory methods have been used to make resource management easier,
specifically as part of testing.
changelog_begin
changelog_end
* Let warning log output in tests
Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
* Address https://github.com/digital-asset/daml/pull/8604#discussion_r562634032
* Address https://github.com/digital-asset/daml/pull/8604#discussion_r562634865
* Address https://github.com/digital-asset/daml/pull/8604#discussion_r562635148
* Address https://github.com/digital-asset/daml/pull/8604#discussion_r562635684
* Add resources-grpc to release/artifacts.yaml
Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
46 lines
1.4 KiB
Python
46 lines
1.4 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 = "resources-grpc",
|
|
srcs = glob(["src/main/scala/**/*.scala"]),
|
|
tags = ["maven_coordinates=com.daml:resources-grpc:__VERSION__"],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
deps = [
|
|
"//libs-scala/resources",
|
|
"@maven//:io_grpc_grpc_api",
|
|
"@maven//:io_netty_netty_common",
|
|
"@maven//:io_netty_netty_transport",
|
|
],
|
|
)
|
|
|
|
da_scala_test_suite(
|
|
name = "test",
|
|
srcs = glob(["src/test/scala/**/*.scala"]),
|
|
resource_strip_prefix = "libs-scala/resources-grpc/src/test/resources/",
|
|
resources = [
|
|
":src/test/resources/logback-test.xml",
|
|
],
|
|
runtime_deps = [
|
|
"@maven//:ch_qos_logback_logback_classic",
|
|
],
|
|
deps = [
|
|
":resources-grpc",
|
|
"//libs-scala/resources",
|
|
"//libs-scala/resources:resources-test-lib",
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
"@maven//:io_grpc_grpc_api",
|
|
"@maven//:io_grpc_grpc_core",
|
|
"@maven//:io_grpc_grpc_netty",
|
|
"@maven//:io_grpc_grpc_services",
|
|
"@maven//:io_grpc_grpc_stub",
|
|
"@maven//:io_netty_netty_common",
|
|
"@maven//:io_netty_netty_handler",
|
|
"@maven//:io_netty_netty_transport",
|
|
],
|
|
)
|