daml/libs-scala/scala-utils/BUILD.bazel
Leonid Shlyapnikov 05d49b37c3
Introduce //libs-scala/scala-utils (#6935)
* Moving `Statements.discard` from //ledger-server/http-json into //libs-scala/scala-utils

changelog_begin
changelog_end

* Add new module to the published artifacts

* `com.daml.scalautil` instead of `com.daml.scala.util`

@S11001001: That's because if this is in classpath and you import com.daml._,
you have a different scala in scope than the one you expect.
2020-07-30 13:51:07 -04:00

37 lines
862 B
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",
)
scalacopts = lf_scalacopts + [
"-P:wartremover:traverser:org.wartremover.warts.NonUnitStatements",
]
da_scala_library(
name = "scala-utils",
srcs = glob(["src/main/scala/**/*.scala"]),
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"]),
scalacopts = scalacopts,
deps = [
":scala-utils",
"//libs-scala/scalatest-utils",
"@maven//:org_scalaz_scalaz_core_2_12",
],
)