daml/daml-lf/lfpackage/BUILD.bazel
moritzkiefer-da fa4067ad1b
Move POM file generation to Bazel rules (#374)
* Move POM file generation to Bazel rules
2019-04-11 11:24:52 +02:00

43 lines
1.1 KiB
Python

# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load(
"//bazel_tools:scala.bzl",
"lf_scalacopts",
"da_scala_library",
"da_scala_test",
)
da_scala_library(
name = "lfpackage",
srcs = glob(["src/main/**/*.scala"]),
deps = [
"//daml-lf/archive:daml_lf_java_proto",
"//daml-lf/archive:daml_lf_archive_scala",
"//daml-lf/data",
"//3rdparty/jvm/org/scalaz:scalaz_core",
"//3rdparty/jvm/com/google/protobuf:protobuf_java",
],
scalacopts = lf_scalacopts,
visibility = ['//visibility:public'],
tags = ["maven_coordinates=com.digitalasset:daml-lf-package:__VERSION__"],
)
da_scala_test(
name = "lfpackage-test",
srcs = glob(["src/test/**/*.scala"]),
size = "small",
deps = [
":lfpackage",
"//daml-lf/archive:daml_lf_archive_scala",
"//daml-lf/data",
"//daml-lf/archive:daml_lf_java_proto",
"//3rdparty/jvm/org/scalaz:scalaz_core",
"//3rdparty/jvm/org/scalacheck:scalacheck",
"//3rdparty/jvm/com/google/protobuf:protobuf_java",
],
scalacopts = lf_scalacopts,
)