daml/runtime-components/non-repudiation-postgresql/BUILD.bazel
Stefano Baghino f1cd4b1c7c
Remove dependencies on compatibility libraries (#12548)
Continues the work started in https://github.com/digital-asset/daml/pull/12543

These libraries were only needed to transition from Scala 2.12 to 2.13
and are no longer useful as all the necessary items are now available
in Scala 2.13.

changelog_begin
changelog_end
2022-01-24 18:04:07 +00:00

64 lines
2.0 KiB
Python

# Copyright (c) 2022 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_test",
)
da_scala_library(
name = "non-repudiation-postgresql",
srcs = glob(["src/main/scala/**/*.scala"]),
resource_strip_prefix = "runtime-components/non-repudiation-postgresql/src/main/resources/",
resources = glob(["src/main/resources/com/daml/nonrepudiation/postgresql/*"]),
scala_deps = [
"@maven//:com_chuusai_shapeless",
"@maven//:org_tpolecat_doobie_core",
"@maven//:org_tpolecat_doobie_free",
"@maven//:org_tpolecat_doobie_hikari",
"@maven//:org_typelevel_cats_core",
"@maven//:org_typelevel_cats_effect",
"@maven//:org_typelevel_cats_free",
"@maven//:org_typelevel_cats_kernel",
],
visibility = [
"//:__subpackages__",
],
deps = [
"//libs-scala/resources",
"//runtime-components/non-repudiation",
"//runtime-components/non-repudiation-resources",
"@maven//:com_zaxxer_HikariCP",
"@maven//:org_flywaydb_flyway_core",
],
)
da_scala_test(
name = "test",
srcs = glob(["src/test/scala/**/*.scala"]),
resources = [
"src/test/resources/logback-test.xml",
],
scala_deps = [
"@maven//:org_tpolecat_doobie_core",
"@maven//:org_tpolecat_doobie_hikari",
"@maven//:org_typelevel_cats_effect",
],
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
"@maven//:org_postgresql_postgresql",
],
deps = [
":non-repudiation-postgresql",
"//ledger-api/grpc-definitions:ledger_api_proto_scala",
"//libs-scala/doobie-slf4j",
"//libs-scala/ports",
"//libs-scala/postgresql-testing",
"//libs-scala/resources",
"//runtime-components/non-repudiation",
"//runtime-components/non-repudiation-testing",
"@maven//:org_slf4j_slf4j_api",
],
)