mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
151e12b81a
This is the result of: - Updating `./COPY` to say `2023`. - Running `./dev-env/bin/dade-copyright-headers update .`
50 lines
1.1 KiB
Python
50 lines
1.1 KiB
Python
# Copyright (c) 2023 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",
|
|
"kind_projector_plugin",
|
|
"lf_scalacopts_stricter",
|
|
)
|
|
load("@scala_version//:index.bzl", "scala_major_version")
|
|
|
|
scalacopts = lf_scalacopts_stricter
|
|
|
|
da_scala_library(
|
|
name = "scala-utils",
|
|
srcs = glob(["src/main/scala/**/*.scala"]) + glob([
|
|
"src/main/{}/**/*.scala".format(scala_major_version),
|
|
]),
|
|
plugins = [
|
|
kind_projector_plugin,
|
|
],
|
|
scala_deps = [
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
],
|
|
scalacopts = scalacopts,
|
|
tags = ["maven_coordinates=com.daml:scala-utils:__VERSION__"],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
deps = [
|
|
],
|
|
)
|
|
|
|
da_scala_test(
|
|
name = "test",
|
|
srcs = glob(["src/test/scala/**/*.scala"]),
|
|
plugins = [
|
|
kind_projector_plugin,
|
|
],
|
|
scala_deps = [
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
],
|
|
scalacopts = scalacopts,
|
|
deps = [
|
|
":scala-utils",
|
|
"//libs-scala/scalatest-utils",
|
|
],
|
|
)
|