2019-08-13 19:23:03 +03:00
|
|
|
# Copyright (c) 2019 The DAML Authors. All rights reserved.
|
2019-04-04 11:33:38 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-04-12 14:10:16 +03:00
|
|
|
load("//bazel_tools:scala.bzl", "da_scala_binary", "da_scala_library", "da_scala_test_suite")
|
2019-04-04 11:33:38 +03:00
|
|
|
|
|
|
|
da_scala_library(
|
2019-04-12 14:10:16 +03:00
|
|
|
name = "rs-grpc-akka",
|
|
|
|
srcs = glob(["src/main/scala/**/*.scala"]),
|
|
|
|
tags = ["maven_coordinates=com.digitalasset.ledger-api:rs-grpc-akka:__VERSION__"],
|
2019-04-04 11:33:38 +03:00
|
|
|
visibility = [
|
2019-04-12 14:10:16 +03:00
|
|
|
"//visibility:public",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"//ledger-api/rs-grpc-bridge",
|
2019-10-28 15:53:14 +03:00
|
|
|
"@maven//:com_typesafe_akka_akka_actor_2_12",
|
|
|
|
"@maven//:com_typesafe_akka_akka_slf4j_2_12",
|
|
|
|
"@maven//:com_typesafe_akka_akka_stream_2_12",
|
|
|
|
"@maven//:io_grpc_grpc_api",
|
|
|
|
"@maven//:io_grpc_grpc_core",
|
|
|
|
"@maven//:io_grpc_grpc_stub",
|
|
|
|
"@maven//:org_reactivestreams_reactive_streams",
|
|
|
|
"@maven//:org_slf4j_slf4j_api",
|
2019-04-11 12:24:52 +03:00
|
|
|
],
|
2019-04-04 11:33:38 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
testDependencies = [
|
2019-10-28 15:53:14 +03:00
|
|
|
"@maven//:io_grpc_grpc_api",
|
|
|
|
"@maven//:io_grpc_grpc_core",
|
|
|
|
"@maven//:io_grpc_grpc_netty",
|
|
|
|
"@maven//:io_grpc_grpc_stub",
|
2019-04-12 14:10:16 +03:00
|
|
|
":rs-grpc-akka",
|
|
|
|
"//ledger-api/testing-utils:testing-utils",
|
|
|
|
"//ledger-api/sample-service:sample-service",
|
|
|
|
"//ledger-api/rs-grpc-bridge:rs-grpc-bridge",
|
|
|
|
"//ledger-api/rs-grpc-bridge:rs-grpc-bridge-test",
|
2019-10-28 15:53:14 +03:00
|
|
|
"@maven//:org_scalactic_scalactic_2_12",
|
|
|
|
"@maven//:org_scalatest_scalatest_2_12",
|
|
|
|
"@maven//:ch_qos_logback_logback_classic",
|
|
|
|
"@maven//:com_typesafe_akka_akka_actor_2_12",
|
|
|
|
"@maven//:com_typesafe_akka_akka_stream_2_12",
|
|
|
|
"@maven//:com_typesafe_akka_akka_stream_testkit_2_12",
|
|
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
|
|
"@maven//:org_awaitility_awaitility",
|
|
|
|
"@maven//:com_thesamet_scalapb_lenses_2_12",
|
|
|
|
"@maven//:com_thesamet_scalapb_scalapb_runtime_2_12",
|
|
|
|
"@maven//:com_thesamet_scalapb_scalapb_runtime_grpc_2_12",
|
2019-04-04 11:33:38 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
da_scala_library(
|
2019-04-12 14:10:16 +03:00
|
|
|
name = "rs-grpc-akka-tests-lib",
|
|
|
|
srcs = glob(
|
|
|
|
["src/test/**/*.scala"],
|
|
|
|
exclude = [
|
|
|
|
"src/test/**/*Spec.scala",
|
|
|
|
"src/test/**/*Test.scala",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
deps = testDependencies,
|
2019-04-04 11:33:38 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
da_scala_test_suite(
|
|
|
|
name = "rs-grpc-akka-tests",
|
2019-04-12 14:10:16 +03:00
|
|
|
srcs = glob([
|
|
|
|
"src/test/**/*Spec.scala",
|
|
|
|
"src/test/**/*Test.scala",
|
|
|
|
]),
|
2019-04-04 11:33:38 +03:00
|
|
|
deps = [
|
|
|
|
":rs-grpc-akka-tests-lib",
|
2019-04-12 14:10:16 +03:00
|
|
|
] + testDependencies,
|
2019-04-04 11:33:38 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
da_scala_binary(
|
|
|
|
name = "rs-grpc-akka-perf",
|
2019-04-12 14:10:16 +03:00
|
|
|
srcs = glob(["src/perf/**/*.scala"]),
|
2019-04-04 11:33:38 +03:00
|
|
|
main_class = "com.digitalasset.grpc.adapter.ServerStreamingBenchmark",
|
|
|
|
deps = [
|
2019-04-12 14:10:16 +03:00
|
|
|
":rs-grpc-akka",
|
|
|
|
":rs-grpc-akka-tests-lib",
|
|
|
|
"//ledger-api/perf-testing",
|
|
|
|
"//ledger-api/rs-grpc-bridge",
|
|
|
|
"//ledger-api/sample-service",
|
|
|
|
"//ledger-api/testing-utils",
|
2019-10-28 15:53:14 +03:00
|
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
|
|
"@maven//:com_storm_enroute_scalameter_2_12",
|
|
|
|
"@maven//:com_storm_enroute_scalameter_core_2_12",
|
|
|
|
"@maven//:com_thesamet_scalapb_lenses_2_12",
|
|
|
|
"@maven//:com_thesamet_scalapb_scalapb_runtime_2_12",
|
|
|
|
"@maven//:com_thesamet_scalapb_scalapb_runtime_grpc_2_12",
|
|
|
|
"@maven//:com_typesafe_akka_akka_actor_2_12",
|
|
|
|
"@maven//:com_typesafe_akka_akka_stream_2_12",
|
|
|
|
"@maven//:io_grpc_grpc_api",
|
|
|
|
"@maven//:io_grpc_grpc_core",
|
|
|
|
"@maven//:io_grpc_grpc_stub",
|
2019-04-12 14:10:16 +03:00
|
|
|
],
|
2019-04-11 12:24:52 +03:00
|
|
|
)
|