mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 17:28:46 +03:00
aa70c7f64e
* Add buildifier targets. The tool allows to check and format BUILD files in the repo. To check if files are well formatted, run: bazel run //:buildifier To fix badly-formatted files run: bazel run //:buildifier-fix * Cleanup dade-copyright-headers formatting. * Fix dade-copyright-headers on files with just the copyright. * Run buildifier automatically on CI via 'fmt.sh'. * Reformat all BUILD files with buildifier. Excludes autogenerated Bazel files.
42 lines
1.2 KiB
Python
42 lines
1.2 KiB
Python
# Copyright (c) 2019 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 = "ledger-api-client",
|
|
srcs = glob(["src/main/scala/**/*.scala"]),
|
|
tags = ["maven_coordinates=com.digitalasset.ledger:ledger-api-client:__VERSION__"],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
deps = [
|
|
"//3rdparty/jvm/com/typesafe/akka:akka_stream",
|
|
"//3rdparty/jvm/io/grpc:grpc_netty",
|
|
"//3rdparty/jvm/io/netty:netty_handler",
|
|
"//3rdparty/jvm/org/slf4j:slf4j_api",
|
|
"//language-support/scala/bindings",
|
|
"//ledger-api/rs-grpc-akka",
|
|
"//ledger-api/rs-grpc-bridge",
|
|
],
|
|
)
|
|
|
|
da_scala_test_suite(
|
|
name = "ledger-api-client-tests",
|
|
srcs = glob(["src/test/suite/**/*.scala"]),
|
|
deps = [
|
|
":ledger-api-client",
|
|
"//3rdparty/jvm/com/typesafe/akka:akka_stream_testkit",
|
|
"//3rdparty/jvm/org/awaitility",
|
|
"//3rdparty/jvm/org/scalatest",
|
|
"//language-support/scala/bindings",
|
|
"//ledger-api/rs-grpc-akka",
|
|
"//ledger-api/rs-grpc-bridge",
|
|
"//ledger-api/testing-utils",
|
|
],
|
|
)
|