2021-07-15 16:03:19 +03:00
|
|
|
# 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_library",
|
|
|
|
"da_scala_test_suite",
|
|
|
|
)
|
|
|
|
|
|
|
|
da_scala_library(
|
|
|
|
name = "ledger-configuration",
|
|
|
|
srcs = glob(["src/main/scala/**/*.scala"]),
|
|
|
|
resources = glob(["src/main/resources/**/*"]),
|
|
|
|
tags = ["maven_coordinates=com.daml:ledger-configuration:__VERSION__"],
|
|
|
|
visibility = [
|
|
|
|
"//visibility:public",
|
|
|
|
],
|
|
|
|
exports = [
|
|
|
|
"//ledger/ledger-configuration/protobuf:ledger_configuration_proto_java",
|
|
|
|
],
|
|
|
|
runtime_deps = [],
|
|
|
|
deps = [
|
|
|
|
"//daml-lf/data",
|
|
|
|
"//language-support/scala/bindings",
|
|
|
|
"//ledger/ledger-configuration/protobuf:ledger_configuration_proto_java",
|
|
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "sources",
|
|
|
|
srcs = glob(["src/main/scala/**/*.scala"]),
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
da_scala_test_suite(
|
|
|
|
name = "ledger-configuration-tests",
|
|
|
|
size = "small",
|
|
|
|
srcs = glob(["src/test/suite/scala/**/*.scala"]),
|
|
|
|
resources = glob(["src/test/resources/*"]),
|
|
|
|
scala_deps = [
|
2021-08-13 02:19:35 +03:00
|
|
|
"@maven//:org_scalatest_scalatest_core",
|
|
|
|
"@maven//:org_scalatest_scalatest_matchers_core",
|
|
|
|
"@maven//:org_scalatest_scalatest_shouldmatchers",
|
|
|
|
"@maven//:org_scalatest_scalatest_wordspec",
|
2021-07-15 16:03:19 +03:00
|
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
|
|
"@maven//:org_scala_lang_modules_scala_collection_compat",
|
2021-07-15 19:15:08 +03:00
|
|
|
"@maven//:org_scala_lang_modules_scala_java8_compat",
|
2021-07-15 16:03:19 +03:00
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":ledger-configuration",
|
|
|
|
"//daml-lf/data",
|
|
|
|
"//daml-lf/transaction",
|
|
|
|
"//ledger-api/grpc-definitions:ledger_api_proto_scala",
|
2021-07-15 19:15:08 +03:00
|
|
|
"//ledger/ledger-configuration/protobuf:ledger_configuration_proto_scala",
|
2021-08-13 02:19:35 +03:00
|
|
|
"@maven//:org_scalatest_scalatest_compatible",
|
2021-07-15 16:03:19 +03:00
|
|
|
],
|
|
|
|
)
|