2022-01-03 19:36:51 +03:00
|
|
|
# Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2021-02-05 15:19:20 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-05-26 13:08:37 +03:00
|
|
|
load("@build_environment//:configuration.bzl", "ghc_version")
|
2021-05-19 15:02:14 +03:00
|
|
|
load(
|
|
|
|
"//bazel_tools/client_server:client_server_build.bzl",
|
|
|
|
"client_server_build",
|
|
|
|
)
|
|
|
|
load(
|
|
|
|
"//bazel_tools/sh:sh.bzl",
|
|
|
|
"sh_inline_test",
|
|
|
|
)
|
2021-02-05 15:19:20 +03:00
|
|
|
load(
|
|
|
|
"//bazel_tools:scala.bzl",
|
|
|
|
"da_scala_binary",
|
|
|
|
"da_scala_test",
|
|
|
|
)
|
|
|
|
|
2021-04-16 13:53:49 +03:00
|
|
|
exports_files(["src/main/resources/logback.xml"])
|
|
|
|
|
2021-02-05 15:19:20 +03:00
|
|
|
da_scala_binary(
|
2021-04-16 13:53:49 +03:00
|
|
|
name = "export",
|
2021-02-05 15:19:20 +03:00
|
|
|
srcs = glob(["src/main/scala/**/*.scala"]),
|
2021-04-16 13:53:49 +03:00
|
|
|
main_class = "com.daml.script.export.Main",
|
2021-02-05 15:19:20 +03:00
|
|
|
resources = glob(["src/main/resources/**/*"]),
|
|
|
|
scala_deps = [
|
|
|
|
"@maven//:com_github_scopt_scopt",
|
|
|
|
"@maven//:com_typesafe_akka_akka_stream",
|
2021-05-03 18:52:40 +03:00
|
|
|
"@maven//:io_spray_spray_json",
|
2021-02-05 15:19:20 +03:00
|
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
|
|
"@maven//:org_typelevel_paiges_core",
|
2021-05-21 10:36:25 +03:00
|
|
|
"@maven//:io_circe_circe_core",
|
|
|
|
"@maven//:io_circe_circe_yaml",
|
2021-02-05 15:19:20 +03:00
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2021-11-26 15:23:17 +03:00
|
|
|
"//daml-lf/archive:daml_lf_1.dev_archive_proto_java",
|
2021-02-05 15:19:20 +03:00
|
|
|
"//daml-lf/archive:daml_lf_archive_reader",
|
|
|
|
"//daml-lf/data",
|
|
|
|
"//daml-lf/language",
|
|
|
|
"//language-support/scala/bindings",
|
|
|
|
"//language-support/scala/bindings-akka",
|
|
|
|
"//ledger-api/rs-grpc-bridge",
|
2021-05-10 16:29:07 +03:00
|
|
|
"//ledger-service/cli-opts",
|
2021-02-05 15:19:20 +03:00
|
|
|
"//ledger/ledger-api-client",
|
|
|
|
"//ledger/ledger-api-common",
|
2021-05-11 10:44:52 +03:00
|
|
|
"//libs-scala/auth-utils",
|
2021-02-05 15:19:20 +03:00
|
|
|
"@maven//:org_apache_commons_commons_text",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
da_scala_test(
|
|
|
|
name = "tests",
|
|
|
|
srcs = glob(["src/test/scala/**/*.scala"]),
|
2021-05-10 16:29:07 +03:00
|
|
|
data = [
|
|
|
|
"//ledger/test-common/test-certificates",
|
|
|
|
],
|
2021-02-05 15:19:20 +03:00
|
|
|
scala_deps = [
|
2021-08-13 02:19:35 +03:00
|
|
|
"@maven//:org_scalatest_scalatest_core",
|
|
|
|
"@maven//:org_scalatest_scalatest_freespec",
|
|
|
|
"@maven//:org_scalatest_scalatest_matchers_core",
|
|
|
|
"@maven//:org_scalatest_scalatest_shouldmatchers",
|
2021-02-05 15:19:20 +03:00
|
|
|
"@maven//:org_typelevel_paiges_core",
|
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2021-04-16 13:53:49 +03:00
|
|
|
":export",
|
2021-05-10 16:29:07 +03:00
|
|
|
"//bazel_tools/runfiles:scala_runfiles",
|
2021-02-05 15:19:20 +03:00
|
|
|
"//daml-lf/data",
|
2021-02-17 14:07:23 +03:00
|
|
|
"//daml-lf/language",
|
2021-02-05 15:19:20 +03:00
|
|
|
"//language-support/scala/bindings",
|
2021-05-10 16:29:07 +03:00
|
|
|
"//ledger/ledger-api-common",
|
2021-05-11 10:44:52 +03:00
|
|
|
"//libs-scala/auth-utils",
|
2021-02-05 15:19:20 +03:00
|
|
|
],
|
|
|
|
)
|