daml/ledger-api/rs-grpc-akka/BUILD.bazel

96 lines
3.2 KiB
Python
Raw Normal View History

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
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(
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 = [
"//visibility:public",
],
deps = [
"//ledger-api/rs-grpc-bridge",
"@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-04 11:33:38 +03:00
)
testDependencies = [
"@maven//:io_grpc_grpc_api",
"@maven//:io_grpc_grpc_core",
"@maven//:io_grpc_grpc_netty",
"@maven//:io_grpc_grpc_stub",
":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",
"@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(
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",
srcs = glob([
"src/test/**/*Spec.scala",
"src/test/**/*Test.scala",
]),
2019-04-04 11:33:38 +03:00
deps = [
":rs-grpc-akka-tests-lib",
] + testDependencies,
2019-04-04 11:33:38 +03:00
)
da_scala_binary(
name = "rs-grpc-akka-perf",
srcs = glob(["src/perf/**/*.scala"]),
2019-04-04 11:33:38 +03:00
main_class = "com.digitalasset.grpc.adapter.ServerStreamingBenchmark",
deps = [
":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",
"@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",
],
)