daml/compiler/scenario-service/server/BUILD.bazel

48 lines
1.6 KiB
Python
Raw Normal View History

# 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
load("//bazel_tools:scala.bzl", "da_scala_binary")
2019-04-04 11:33:38 +03:00
genrule(
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(
name = "scenario-service-raw",
srcs = glob(["src/main/scala/**/*.scala"]),
main_class = "com.daml.lf.scenario.ScenarioServiceMain",
resources = glob(["src/main/resources/*"]),
scala_deps = [
"@maven//:com_typesafe_scala_logging_scala_logging",
"@maven//:org_scalaz_scalaz_core",
"@maven//:com_github_scopt_scopt",
],
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
],
deps = [
"//compiler/scenario-service/protos:scenario_service_java_proto",
"//daml-lf/archive:daml_lf_archive_reader",
"//daml-lf/data",
"//daml-lf/interpreter",
"//daml-lf/language",
"//daml-lf/scenario-interpreter",
"//daml-lf/transaction",
"//daml-lf/validation",
"//daml-script/runner:script-runner-lib",
"//language-support/scala/bindings",
"//language-support/scala/bindings-akka",
"//ledger-api/rs-grpc-bridge",
"//libs-scala/contextualized-logging",
"@maven//:com_google_protobuf_protobuf_java",
"@maven//:io_grpc_grpc_api",
"@maven//:io_grpc_grpc_core",
"@maven//:io_grpc_grpc_netty",
"@maven//:io_grpc_grpc_stub",
],
2019-04-04 11:33:38 +03:00
)