mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
f85f7816c7
* move interface directory to api-type-signature; change bazel target; move scala files * rename iface package to typesig; rename EnvironmentInterface to EnvironmentSignature * rename Interface to PackageSignature * rename fromReaderInterfaces to fromPackageSignatures * rename InterfaceReader to SignatureReader * rename InterfaceReader to SignatureReader in deprecation note * rename readInterface to readPackageSignature * rename InterfaceReaderError to Error * rename InterfaceReaderMain to SignatureReaderMain * rename InterfaceType to PackageSignature.TypeDecl * rename astInterfaces to interfaces * rename astInterfaces to interfaces in PackageSignature * rename findAstInterface to findInterface * rename a couple arguments CHANGELOG_BEGIN - [Scala API] The "quasi-public" API in ``com.daml.lf.iface`` has moved to the new ``com.daml.lf.typesig`` package, with many accompanying name changes as documented in `issue #13669 <https://github.com/digital-asset/daml/issues/13669>`__. Daml 2.5.0 or later will remove the old names, and also rename the Maven artifact from ``daml-lf-interface`` to ``daml-lf-api-type-signature``. We recommend that users of this API use the deprecation guidance in 2.4.0 to port their applications before this happens. CHANGELOG_END
69 lines
1.8 KiB
Python
69 lines
1.8 KiB
Python
# Copyright (c) 2022 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",
|
|
)
|
|
load(
|
|
"//rules_daml:daml.bzl",
|
|
"daml_compile",
|
|
)
|
|
|
|
da_scala_library(
|
|
name = "lf-value-json",
|
|
srcs = glob(["src/main/scala/**/*.scala"]),
|
|
scala_deps = [
|
|
"@maven//:io_spray_spray_json",
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
],
|
|
scalacopts = lf_scalacopts,
|
|
tags = ["maven_coordinates=com.daml:lf-value-json:__VERSION__"],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
deps = [
|
|
"//daml-lf/api-type-signature",
|
|
"//daml-lf/data",
|
|
"//daml-lf/transaction",
|
|
],
|
|
)
|
|
|
|
daml_compile(
|
|
name = "JsonEncodingTest",
|
|
srcs = ["src/test/daml/JsonEncodingTest.daml"],
|
|
)
|
|
|
|
da_scala_test(
|
|
name = "tests",
|
|
size = "medium",
|
|
srcs = glob(["src/test/scala/**/*.scala"]),
|
|
data = [
|
|
":JsonEncodingTest.dar",
|
|
],
|
|
scala_deps = [
|
|
"@maven//:com_chuusai_shapeless",
|
|
"@maven//:io_spray_spray_json",
|
|
"@maven//:org_scalacheck_scalacheck",
|
|
"@maven//:org_scalatest_scalatest_core",
|
|
"@maven//:org_scalatest_scalatest_matchers_core",
|
|
"@maven//:org_scalatest_scalatest_shouldmatchers",
|
|
"@maven//:org_scalatest_scalatest_wordspec",
|
|
"@maven//:org_scalatestplus_scalacheck_1_15",
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
],
|
|
scalacopts = lf_scalacopts,
|
|
deps = [
|
|
":lf-value-json",
|
|
"//bazel_tools/runfiles:scala_runfiles",
|
|
"//daml-lf/api-type-signature",
|
|
"//daml-lf/data",
|
|
"//daml-lf/transaction",
|
|
"//daml-lf/transaction-test-lib",
|
|
"//ledger-service/utils",
|
|
"@maven//:org_scalatest_scalatest_compatible",
|
|
],
|
|
)
|