mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
67d4011fcd
* build daml-lf/* with lf_scalacopts_stricter; and fix NonUnitStatements fix daml-lf/archive CHANGELOG_BEGIN CHANGELOG_END fix daml-lf/data/ fix daml-lf/engine fixes for scala 2.12 data-scalacheck, interface, kv-transaction-support: switch on; nothing to do * daml-lf/parser -- switch on; nothing to do * daml-lf/validation : switch on lf_scalacopts_stricter & fix wartremover:NonUnitStatements * lf_scalacopts_stricter in daml-lf/transaction-test-lib * lf_scalacopts_stricter in daml-lf/scenario-interpreter
45 lines
1.3 KiB
Python
45 lines
1.3 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_test_suite",
|
|
"lf_scalacopts",
|
|
"lf_scalacopts_stricter",
|
|
)
|
|
|
|
da_scala_library(
|
|
name = "kv-transaction-support",
|
|
srcs = glob(["src/main/**/*.scala"]),
|
|
scalacopts = lf_scalacopts_stricter,
|
|
tags = ["maven_coordinates=com.daml:daml-lf-kv-transaction-support:__VERSION__"],
|
|
visibility = ["//ledger/participant-state/kvutils:__subpackages__"],
|
|
deps = [
|
|
"//daml-lf/data",
|
|
"//daml-lf/transaction",
|
|
],
|
|
)
|
|
|
|
da_scala_test_suite(
|
|
name = "test",
|
|
srcs = glob(["src/test/**/*.scala"]),
|
|
scala_deps = [
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
"@maven//:org_scalacheck_scalacheck",
|
|
"@maven//:org_scalatest_scalatest_core",
|
|
"@maven//:org_scalatest_scalatest_matchers_core",
|
|
"@maven//:org_scalatest_scalatest_shouldmatchers",
|
|
"@maven//:org_scalatest_scalatest_wordspec",
|
|
"@maven//:org_scalatestplus_scalacheck_1_15",
|
|
],
|
|
scalacopts = lf_scalacopts,
|
|
deps = [
|
|
":kv-transaction-support",
|
|
"//daml-lf/data",
|
|
"//daml-lf/transaction",
|
|
"//daml-lf/transaction-test-lib",
|
|
"@maven//:org_scalatest_scalatest_compatible",
|
|
],
|
|
)
|