daml/ledger/participant-state/BUILD.bazel
Gerolf Seitz 329320bad9
Organize maven coordinates (#5272)
* Use com.daml as groupId for all artifacts

CHANGELOG_BEGIN
[SDK] Changed the groupId for Maven artifacts to ``com.daml``.
CHANGELOG_END

* Add 2 additional maven related checks to the release binary

1. Check that all maven upload artifacts use com.daml as the groupId
2. Check that all maven upload artifacts have a unique artifactId

* Address @cocreature's comments in https://github.com/digital-asset/daml/pull/5272#pullrequestreview-385026181
2020-04-01 11:41:18 +02:00

46 lines
1.4 KiB
Python

# Copyright (c) 2020 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",
)
da_scala_library(
name = "participant-state",
srcs = glob(["src/main/scala/com/daml/ledger/participant/state/v1/**/*.scala"]),
resources = glob(["src/main/resources/**/*"]),
tags = ["maven_coordinates=com.daml:participant-state:__VERSION__"],
visibility = [
"//visibility:public",
],
exports = [
"//ledger/participant-state/protobuf:ledger_configuration_java_proto",
],
runtime_deps = [],
deps = [
"//daml-lf/archive:daml_lf_dev_archive_java_proto",
"//daml-lf/data",
"//daml-lf/transaction",
"//language-support/scala/bindings",
"//ledger/ledger-api-health",
"//ledger/participant-state/protobuf:ledger_configuration_java_proto",
"@maven//:com_google_protobuf_protobuf_java",
"@maven//:com_typesafe_akka_akka_actor_2_12",
"@maven//:com_typesafe_akka_akka_stream_2_12",
],
)
da_scala_test(
name = "participant-state-tests",
size = "small",
srcs = glob(["src/test/suite/**/*.scala"]),
resources = glob(["src/test/resources/*"]),
deps = [
":participant-state",
"//daml-lf/transaction",
"@maven//:org_scalatest_scalatest_2_12",
],
)