daml/daml-lf/validation/BUILD.bazel
Remy a39b7cc003
LF: check dependencies are not compiled to newer version. (#7050)
This PR prevents a module to depend on an older version of LF than the one is compile to.

CHANGELOG_BEGIN
CHANGELOG_END
2020-08-07 18:32:20 +02:00

41 lines
1.0 KiB
Python

# 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",
"lf_scalacopts",
)
da_scala_library(
name = "validation",
srcs = glob(["src/main/**/*.scala"]),
scalacopts = lf_scalacopts,
tags = ["maven_coordinates=com.daml:daml-lf-validation:__VERSION__"],
visibility = [
"//compiler/scenario-service:__subpackages__",
"//daml-lf:__subpackages__",
],
deps = [
"//daml-lf/data",
"//daml-lf/language",
"//daml-lf/transaction",
"@maven//:org_scalaz_scalaz_core_2_12",
],
)
da_scala_test(
name = "validation-test",
size = "small",
srcs = glob(["src/test/**/*.scala"]),
scalacopts = lf_scalacopts,
deps = [
":validation",
"//daml-lf/data",
"//daml-lf/language",
"//daml-lf/parser",
"@maven//:org_scalaz_scalaz_core_2_12",
],
)