2022-01-03 19:36:51 +03:00
|
|
|
# Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2019-04-04 11:33:38 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2022-01-24 18:01:35 +03:00
|
|
|
load("//bazel_tools:scala.bzl", "da_scala_binary")
|
2019-04-04 11:33:38 +03:00
|
|
|
|
|
|
|
genrule(
|
2019-04-12 14:10:16 +03:00
|
|
|
name = "scenario_service_jar",
|
|
|
|
srcs = [":scenario-service-raw_deploy.jar"],
|
|
|
|
outs = ["scenario-service.jar"],
|
|
|
|
cmd = "cp $< $@",
|
|
|
|
visibility = ["//visibility:public"],
|
2019-04-04 11:33:38 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
da_scala_binary(
|
2019-04-12 14:10:16 +03:00
|
|
|
name = "scenario-service-raw",
|
|
|
|
srcs = glob(["src/main/scala/**/*.scala"]),
|
2020-04-05 20:49:57 +03:00
|
|
|
main_class = "com.daml.lf.scenario.ScenarioServiceMain",
|
2019-09-13 15:31:52 +03:00
|
|
|
resources = glob(["src/main/resources/*"]),
|
2021-01-08 09:22:38 +03:00
|
|
|
scala_deps = [
|
|
|
|
"@maven//:com_typesafe_scala_logging_scala_logging",
|
|
|
|
"@maven//:org_scalaz_scalaz_core",
|
2021-12-15 15:39:14 +03:00
|
|
|
"@maven//:com_github_scopt_scopt",
|
2021-01-08 09:22:38 +03:00
|
|
|
],
|
2020-01-06 15:58:56 +03:00
|
|
|
runtime_deps = [
|
|
|
|
"@maven//:ch_qos_logback_logback_classic",
|
|
|
|
],
|
2019-04-12 14:10:16 +03:00
|
|
|
deps = [
|
|
|
|
"//compiler/scenario-service/protos:scenario_service_java_proto",
|
2019-10-14 17:53:50 +03:00
|
|
|
"//daml-lf/archive:daml_lf_archive_reader",
|
2019-04-12 14:10:16 +03:00
|
|
|
"//daml-lf/data",
|
|
|
|
"//daml-lf/interpreter",
|
2019-06-12 18:55:48 +03:00
|
|
|
"//daml-lf/language",
|
2019-04-12 14:10:16 +03:00
|
|
|
"//daml-lf/scenario-interpreter",
|
|
|
|
"//daml-lf/transaction",
|
|
|
|
"//daml-lf/validation",
|
2020-08-05 13:56:09 +03:00
|
|
|
"//daml-script/runner:script-runner-lib",
|
|
|
|
"//language-support/scala/bindings",
|
|
|
|
"//language-support/scala/bindings-akka",
|
|
|
|
"//ledger-api/rs-grpc-bridge",
|
2022-02-21 15:34:46 +03:00
|
|
|
"//libs-scala/contextualized-logging",
|
2019-10-28 15:53:14 +03:00
|
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
|
|
"@maven//:io_grpc_grpc_api",
|
2020-03-05 19:10:49 +03:00
|
|
|
"@maven//:io_grpc_grpc_core",
|
|
|
|
"@maven//:io_grpc_grpc_netty",
|
2019-10-28 15:53:14 +03:00
|
|
|
"@maven//:io_grpc_grpc_stub",
|
2019-04-12 14:10:16 +03:00
|
|
|
],
|
2019-04-04 11:33:38 +03:00
|
|
|
)
|