2020-03-27 03:26:10 +03:00
|
|
|
# Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2020-01-21 16:25:06 +03:00
|
|
|
# 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"]),
|
2020-12-14 20:36:53 +03:00
|
|
|
scala_deps = [
|
|
|
|
"@maven//:com_typesafe_akka_akka_actor",
|
|
|
|
"@maven//:com_typesafe_akka_akka_stream",
|
|
|
|
],
|
2020-09-03 20:47:09 +03:00
|
|
|
scalacopts = ["-Xsource:2.13"],
|
2020-10-13 18:44:16 +03:00
|
|
|
silent_annotations = True,
|
2020-04-01 12:41:18 +03:00
|
|
|
tags = ["maven_coordinates=com.daml:contextualized-logging:__VERSION__"],
|
2020-12-14 20:36:53 +03:00
|
|
|
versioned_scala_deps = {
|
|
|
|
"2.12": [
|
|
|
|
"@maven//:org_scala_lang_modules_scala_collection_compat",
|
|
|
|
],
|
|
|
|
},
|
2020-01-21 16:25:06 +03:00
|
|
|
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"]),
|
2020-12-14 20:36:53 +03:00
|
|
|
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",
|
|
|
|
],
|
2020-01-21 16:25:06 +03:00
|
|
|
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",
|
|
|
|
],
|
|
|
|
)
|