-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Self-service errors: generate error deprecation docs [KVL-1187] (#11539)
* Render error deprecation in generated docs CHANGELOG_BEGIN CHANGELOG_END * Build export-error-codes-json-app with Scala 2.13 only * Generate docs only with Scala 2.13 * Generate daml-on-sql docs only with Scala 2.13 * Split the error codes JSON generator off from the error lib * Build all docs only with Scala 2.13
- Loading branch information
1 parent
8d48cf6
commit 0823601
Showing
12 changed files
with
108 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
load( | ||
"//bazel_tools:scala.bzl", | ||
"da_scala_binary", | ||
"da_scala_test_suite", | ||
) | ||
load("@scala_version//:index.bzl", "scala_major_version") | ||
|
||
da_scala_binary( | ||
name = "export-error-codes-json-app", | ||
srcs = glob(["src/main/scala/**/*.scala"]), | ||
main_class = "com.daml.error.generator.Main", | ||
resources = glob(["src/main/resources/**/*"]), | ||
scala_deps = [ | ||
"@maven//:io_circe_circe_core", | ||
"@maven//:org_typelevel_cats_core", | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//ledger/error", | ||
"@maven//:org_reflections_reflections", | ||
], | ||
) if scala_major_version == "2.13" else None | ||
|
||
da_scala_test_suite( | ||
name = "export-error-codes-json-tests", | ||
srcs = glob(["src/test/suite/scala/**/*.scala"]), | ||
scala_deps = [ | ||
"@maven//:org_scalactic_scalactic", | ||
"@maven//:org_scalatest_scalatest_core", | ||
"@maven//:org_scalatest_scalatest_matchers_core", | ||
"@maven//:org_scalatest_scalatest_shouldmatchers", | ||
], | ||
deps = [ | ||
":export-error-codes-json-app", | ||
"//ledger/error", | ||
"//ledger/error:error-test-utils", | ||
"//ledger/test-common", | ||
"//libs-scala/contextualized-logging", | ||
"@maven//:ch_qos_logback_logback_classic", | ||
"@maven//:com_google_api_grpc_proto_google_common_protos", | ||
"@maven//:com_google_protobuf_protobuf_java", | ||
"@maven//:io_grpc_grpc_api", | ||
"@maven//:io_grpc_grpc_protobuf", | ||
"@maven//:org_scalatest_scalatest_compatible", | ||
"@maven//:org_slf4j_slf4j_api", | ||
], | ||
) if scala_major_version == "2.13" else None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters