# 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", ], )