mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
b00e146aa0
* Move ExceptionOps from ledger-service/utils to //libs-scala/scala-utils * extract connection and JdbcConfig from //ledger-service to independent db-utils module Changelog_begin Changelog_end * update trigger service to use new libs-scala/db-utils * missed changes for http-json-oracle * minor cleanup based on comments * fix breaking scala 2_12 build * cleanup db-utils/BAZEL.md file
59 lines
1.5 KiB
Python
59 lines
1.5 KiB
Python
# 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_library(
|
|
name = "base",
|
|
srcs = glob(["src/main/scala/**/*.scala"]),
|
|
scala_deps = [
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
],
|
|
deps = [
|
|
"//daml-lf/data",
|
|
"//language-support/scala/bindings-akka",
|
|
"//ledger-api/rs-grpc-bridge",
|
|
"//ledger-service/http-json-cli:base",
|
|
"//ledger-service/utils",
|
|
"//libs-scala/contextualized-logging",
|
|
"//libs-scala/scala-utils",
|
|
"//libs-scala/timer-utils",
|
|
],
|
|
)
|
|
|
|
deps = {
|
|
"ce": [],
|
|
"ee": [
|
|
"//runtime-components/non-repudiation-client",
|
|
],
|
|
}
|
|
|
|
[
|
|
da_scala_library(
|
|
name = edition,
|
|
srcs = glob(["{}/src/main/scala/**/*.scala".format(edition)]),
|
|
scala_deps = [
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
exports = [":base"],
|
|
deps = deps.get(edition) + [
|
|
":base",
|
|
"//ledger/ledger-api-client",
|
|
"//ledger-api/rs-grpc-bridge",
|
|
"//ledger-service/http-json-cli:{}".format(edition),
|
|
"@maven//:io_grpc_grpc_api",
|
|
"@maven//:io_grpc_grpc_core",
|
|
"//libs-scala/contextualized-logging",
|
|
"@maven//:io_grpc_grpc_netty",
|
|
],
|
|
)
|
|
for edition in [
|
|
"ce",
|
|
"ee",
|
|
]
|
|
]
|