daml/compiler/repl-service/server/BUILD.bazel
Moritz Kiefer 44d843f9ef
Support authentication and TLS in DAML repl (#4998)
* Support authentication and TLS in DAML repl

changelog_begin

- [DAML Repl - Experimental] You can now connect to a ledger via TLS
  by passing ``--tls`` to ``daml repl``

- [DAML Repl - Experimental] You can now connect to a ledger with
  authentication by passing the token via ``--access-token-file`` to
  ``daml repl``.

changelog_end

* try to fix linking on windows

* windows is weird

* gnah
2020-03-16 10:43:57 +01:00

45 lines
1.4 KiB
Python

# Copyright (c) 2020 The DAML Authors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load(
"//bazel_tools:scala.bzl",
"da_scala_binary",
)
genrule(
name = "repl_service_jar",
srcs = [":repl-service-raw_deploy.jar"],
outs = ["repl-service.jar"],
cmd = "cp $< $@",
visibility = ["//visibility:public"],
)
da_scala_binary(
name = "repl-service-raw",
srcs = glob(["src/main/scala/**/*.scala"]),
main_class = "com.digitalasset.daml.lf.repl.ReplServiceMain",
resources = ["src/main/resources/logback.xml"],
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
],
deps = [
"//compiler/repl-service/protos:repl_service_java_proto",
"//daml-lf/archive:daml_lf_archive_reader",
"//daml-lf/data",
"//daml-lf/interpreter",
"//daml-lf/language",
"//daml-script/runner:script-runner-lib",
"//language-support/scala/bindings-akka",
"//ledger-api/rs-grpc-bridge",
"//ledger/ledger-api-common",
"//libs-scala/auth-utils",
"@maven//:com_github_scopt_scopt_2_12",
"@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",
"@maven//:org_scalaz_scalaz_core_2_12",
],
)