mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
fa4067ad1b
* Move POM file generation to Bazel rules
43 lines
1.1 KiB
Python
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,
|
|
)
|
|
|