daml/libs-scala/contextualized-logging/BUILD.bazel

57 lines
1.7 KiB
Python
Raw Normal View History

# Copyright (c) 2020 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_suite",
)
da_scala_library(
name = "contextualized-logging",
srcs = glob(["src/main/scala/**/*.scala"]),
scala_deps = [
"@maven//:com_typesafe_akka_akka_actor",
"@maven//:com_typesafe_akka_akka_stream",
],
scalacopts = ["-Xsource:2.13"],
silent_annotations = True,
tags = ["maven_coordinates=com.daml:contextualized-logging:__VERSION__"],
versioned_scala_deps = {
"2.12": [
"@maven//:org_scala_lang_modules_scala_collection_compat",
],
},
visibility = [
"//visibility:public",
],
deps = [
"//libs-scala/grpc-utils",
"@maven//:io_grpc_grpc_api",
"@maven//:net_logstash_logback_logstash_logback_encoder",
"@maven//:org_slf4j_slf4j_api",
],
)
da_scala_test_suite(
name = "contextualized-logging-tests",
srcs = glob(["src/test/suite/**/*.scala"]),
scala_deps = [
"@maven//:com_chuusai_shapeless",
"@maven//:io_circe_circe_core",
"@maven//:io_circe_circe_generic",
"@maven//:io_circe_circe_parser",
"@maven//:org_mockito_mockito_scala",
"@maven//:org_typelevel_cats_core",
"@maven//:org_typelevel_cats_kernel",
],
deps = [
":contextualized-logging",
"@maven//:ch_qos_logback_logback_classic",
"@maven//:ch_qos_logback_logback_core",
"@maven//:net_logstash_logback_logstash_logback_encoder",
"@maven//:org_mockito_mockito_core",
"@maven//:org_slf4j_slf4j_api",
],
)