2020-05-12 20:45:55 +03:00
|
|
|
# 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",
|
2020-06-19 17:42:40 +03:00
|
|
|
"da_scala_test_suite",
|
2020-05-12 20:45:55 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
da_scala_library(
|
|
|
|
name = "caching",
|
|
|
|
srcs = glob(["src/main/scala/**/*.scala"]),
|
|
|
|
tags = ["maven_coordinates=com.daml:caching:__VERSION__"],
|
|
|
|
visibility = [
|
|
|
|
"//:__subpackages__",
|
|
|
|
],
|
|
|
|
deps = [
|
2020-05-20 16:51:45 +03:00
|
|
|
"//ledger/metrics",
|
2020-05-12 20:45:55 +03:00
|
|
|
"@maven//:com_github_ben_manes_caffeine_caffeine",
|
2020-05-20 16:51:45 +03:00
|
|
|
"@maven//:io_dropwizard_metrics_metrics_core",
|
2020-05-12 20:45:55 +03:00
|
|
|
"@maven//:org_scala_lang_modules_scala_java8_compat_2_12",
|
|
|
|
],
|
|
|
|
)
|
2020-06-19 17:42:40 +03:00
|
|
|
|
|
|
|
da_scala_library(
|
|
|
|
name = "caching-test-lib",
|
|
|
|
srcs = glob(["src/test/lib/scala/**/*.scala"]),
|
|
|
|
deps = [
|
|
|
|
":caching",
|
|
|
|
"@maven//:org_scalactic_scalactic_2_12",
|
|
|
|
"@maven//:org_scalatest_scalatest_2_12",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
da_scala_test_suite(
|
|
|
|
name = "caching-tests",
|
|
|
|
srcs = glob(["src/test/suite/scala/**/*.scala"]),
|
|
|
|
deps = [
|
|
|
|
":caching",
|
|
|
|
":caching-test-lib",
|
|
|
|
"@maven//:org_scalactic_scalactic_2_12",
|
|
|
|
"@maven//:org_scalatest_scalatest_2_12",
|
|
|
|
],
|
|
|
|
)
|