mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
f0f8027a47
* Set supported jdbc driver names at compile time This is mainly to unblock the work on Oracle support in the Ledger API but I think it’s a sensible thing in general. For the Ledger API, moving the dependency to the top-level is apparently rather tricky. Because the SDK bundles everything into a single megajar, Sandbox depending on the oracle library does also result in the JSON API and the trigger service will also have the oracle library in scope and will support Oracle in CE which they should not. This PR simply hardcodes the list of supported drivers to address that. Not pretty but does the job. changelog_begin changelog_end * format * Address review comments changelog_begin changelog_end
27 lines
560 B
Python
27 lines
560 B
Python
# 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_library",
|
|
"da_scala_test",
|
|
)
|
|
|
|
[
|
|
da_scala_library(
|
|
name = "jdbc-drivers-{}".format(edition),
|
|
srcs = glob(["src/main/{}/scala/**/*.scala".format(edition)]),
|
|
scala_deps = [
|
|
],
|
|
visibility = [
|
|
"//:__subpackages__",
|
|
],
|
|
deps = [
|
|
],
|
|
)
|
|
for edition in [
|
|
"ce",
|
|
"ee",
|
|
]
|
|
]
|