daml/ledger/participant-state/BUILD.bazel
Stephen Compall 86148c398b
make @silent annotations narrower (#6570)
* check that all @silent annotations are used

CHANGELOG_BEGIN
CHANGELOG_END

* make all @silent annotations very specific about what they're silencing
2020-07-01 20:53:22 +00:00

52 lines
1.6 KiB
Python

# Copyright (c) 2020 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",
)
da_scala_library(
name = "participant-state",
srcs = glob(["src/main/scala/com/daml/ledger/participant/state/v1/**/*.scala"]),
plugins = [
"@maven//:com_github_ghik_silencer_plugin_2_12_11",
],
resources = glob(["src/main/resources/**/*"]),
scalacopts = ["-P:silencer:checkUnused"],
tags = ["maven_coordinates=com.daml:participant-state:__VERSION__"],
visibility = [
"//visibility:public",
],
exports = [
"//ledger/participant-state/protobuf:ledger_configuration_java_proto",
],
runtime_deps = [],
deps = [
"//daml-lf/archive:daml_lf_dev_archive_java_proto",
"//daml-lf/data",
"//daml-lf/transaction",
"//language-support/scala/bindings",
"//ledger/ledger-api-health",
"//ledger/participant-state/protobuf:ledger_configuration_java_proto",
"@maven//:com_github_ghik_silencer_lib_2_12_11",
"@maven//:com_google_protobuf_protobuf_java",
"@maven//:com_typesafe_akka_akka_actor_2_12",
"@maven//:com_typesafe_akka_akka_stream_2_12",
],
)
da_scala_test(
name = "participant-state-tests",
size = "small",
srcs = glob(["src/test/suite/**/*.scala"]),
resources = glob(["src/test/resources/*"]),
deps = [
":participant-state",
"//daml-lf/transaction",
"@maven//:org_scalatest_scalatest_2_12",
"@maven//:org_scalaz_scalaz_core_2_12",
],
)