daml/ledger/ledger-api-server-example/BUILD.bazel
gleber aa70c7f64e
Enforce consistent formatting of BUILD files. (#412)
* 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.
2019-04-12 13:10:16 +02:00

44 lines
1.5 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_binary",
)
da_scala_binary(
name = "ledger-api-server-example",
srcs = glob(["src/**/*.scala"]),
main_class = "com.digitalasset.ledger.example.Main",
resources = glob(["src/main/resources/**/*"]),
scalacopts = [],
deps = [
"//3rdparty/jvm/com/typesafe/akka:akka_stream",
"//3rdparty/jvm/io/grpc:grpc_netty",
"//3rdparty/jvm/io/netty:netty_handler",
"//3rdparty/jvm/org/reactivestreams:reactive_streams",
"//3rdparty/jvm/org/scalaz:scalaz_concurrent",
"//3rdparty/jvm/org/scalaz:scalaz_core",
"//3rdparty/jvm/org/slf4j:slf4j_api",
"//daml-lf/archive:daml_lf_archive_scala",
"//daml-lf/archive:daml_lf_java_proto",
"//daml-lf/data",
"//daml-lf/engine",
"//daml-lf/interpreter",
"//daml-lf/lfpackage",
"//daml-lf/transaction",
"//daml-lf/transaction/src/main/protobuf:transaction_java_proto",
"//daml-lf/transaction/src/main/protobuf:value_java_proto",
"//language-support/scala/bindings",
"//ledger-api/rs-grpc-akka",
"//ledger-api/rs-grpc-bridge",
"//ledger/backend-api",
"//ledger/ledger-api-akka",
"//ledger/ledger-api-client",
"//ledger/ledger-api-common",
"//ledger/ledger-api-domain",
"//ledger/ledger-api-scala-logging",
"//ledger/sandbox",
],
)