mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
2bd1db490a
* Update bazel-common to fix javadoc issues Specifically, to fix the following error ``` ERROR: /home/aj/tweag.io/da/da-bazel-1.1/ledger-api/rs-grpc-bridge/BUILD.bazel:7:1: in javadoc_library rule //ledger-api/rs-grpc-bridge:rs-grpc-bridge_javadoc: Traceback (most recent call last): File "/home/aj/tweag.io/da/da-bazel-1.1/ledger-api/rs-grpc-bridge/BUILD.bazel", line 7 javadoc_library(name = 'rs-grpc-bridge_javadoc') File "/home/aj/.cache/bazel/_bazel_aj/5f825ad28f8e070f999ba37395e46ee5/external/com_github_google_bazel_common/tools/javadoc/javadoc.bzl", line 27, in _javadoc_library dep.java.transitive_deps object of type 'JavaSkylarkApiProvider' has no field 'transitive_deps' ``` * Define Maven deps using rules_jvm_external * Pin artifacts * Remove bazel-deps generated targets * Remove bazel-deps * Switch to rules_jvm_external targets * update bazel documentation * pom_file: There are no more bazel-deps targets * BAZEL-JVM.md `maven_install` typo
62 lines
1.9 KiB
Python
62 lines
1.9 KiB
Python
# Copyright (c) 2019 The DAML Authors. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
load(
|
|
"//bazel_tools:scala.bzl",
|
|
"da_scala_binary",
|
|
"da_scala_library",
|
|
"da_scala_test",
|
|
"lf_scalacopts",
|
|
)
|
|
|
|
da_scala_library(
|
|
name = "engine",
|
|
srcs = glob(["src/main/**/*.scala"]),
|
|
scalacopts = lf_scalacopts,
|
|
tags = ["maven_coordinates=com.digitalasset:daml-lf-engine:__VERSION__"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//daml-lf/data",
|
|
"//daml-lf/interpreter",
|
|
"//daml-lf/language",
|
|
"//daml-lf/transaction",
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
|
"@maven//:org_typelevel_paiges_core_2_12",
|
|
],
|
|
)
|
|
|
|
# TODO(JM): It would make sense to break up the tests
|
|
# into individual targets (so that individual tests can
|
|
# be cached!). There's the "da_scala_test_suite"
|
|
# macro that will do that for you, but one should separate
|
|
# the utilities from the tests.
|
|
da_scala_test(
|
|
name = "tests",
|
|
timeout = "moderate",
|
|
srcs = glob(["src/test/**/*.scala"]),
|
|
data = [
|
|
"//daml-lf/tests:BasicTests.dar",
|
|
"//daml-lf/tests:LargeTransaction.dar",
|
|
"//daml-lf/tests:Optional.dar",
|
|
],
|
|
scalacopts = lf_scalacopts,
|
|
deps = [
|
|
":engine",
|
|
"//bazel_tools/runfiles:scala_runfiles",
|
|
"//daml-lf/archive:daml_lf_archive_reader",
|
|
"//daml-lf/archive:daml_lf_dev_archive_java_proto",
|
|
"//daml-lf/data",
|
|
"//daml-lf/interpreter",
|
|
"//daml-lf/language",
|
|
"//daml-lf/parser",
|
|
"//daml-lf/scenario-interpreter",
|
|
"//daml-lf/transaction",
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
"@maven//:com_storm_enroute_scalameter_core_2_12",
|
|
"@maven//:org_scalacheck_scalacheck_2_12",
|
|
"@maven//:org_scalatest_scalatest_2_12",
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
|
],
|
|
)
|