daml/runtime-components/non-repudiation-app/BUILD.bazel
Stefano Baghino 0e4af7418d
Add runner for non-repudiation (#9076)
* Add runner for non-repudiation

Closes #8633

changelog_begin
changelog_end

* Fix existing tests

* Add test for non-repudiation-app option parser

* Remove unnecessary dependencies from non-repudiation testing

* Fix Scala 2.13 build errors

* Fix help message for --api-address and --api-port
2021-03-11 10:57:50 +01:00

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_binary",
"da_scala_test",
)
da_scala_binary(
name = "non-repudiation-app",
srcs = glob(["src/main/scala/**/*.scala"]),
main_class = "com.daml.nonrepudiation.app.NonRepudiationApp",
scala_deps = [
"@maven//:com_github_scopt_scopt",
"@maven//:com_typesafe_akka_akka_actor",
"@maven//:com_typesafe_akka_akka_stream",
"@maven//:org_tpolecat_doobie_core",
"@maven//:org_tpolecat_doobie_hikari",
"@maven//:org_typelevel_cats_effect",
],
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
"@maven//:org_postgresql_postgresql",
],
deps = [
"//ledger-api/grpc-definitions:ledger_api_proto_scala",
"//libs-scala/doobie-slf4j",
"//libs-scala/resources",
"//libs-scala/resources-akka",
"//runtime-components/non-repudiation",
"//runtime-components/non-repudiation-api",
"//runtime-components/non-repudiation-postgresql",
"@maven//:io_grpc_grpc_api",
"@maven//:io_grpc_grpc_core",
"@maven//:io_grpc_grpc_netty",
"@maven//:org_slf4j_slf4j_api",
],
)
da_scala_test(
name = "test",
srcs = glob(["src/test/scala/**/*.scala"]),
scala_deps = [
"@maven//:com_github_scopt_scopt",
],
deps = [
":non-repudiation-app",
],
)