daml/bazel-java-deps.bzl

182 lines
9.7 KiB
Python
Raw Normal View History

# Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# When adding, removing or changing a dependency in this file, update the pinned dependencies by executing
# $ bazel run @unpinned_maven//:pin
# See https://github.com/bazelbuild/rules_jvm_external#updating-maven_installjson
load("@rules_jvm_external//:defs.bzl", "maven_install")
def install_java_deps():
maven_install(
artifacts = [
"ai.x:diff_2.12:2.0.1",
"args4j:args4j:2.33",
"ch.qos.logback:logback-classic:1.2.3",
"ch.qos.logback:logback-core:1.2.3",
"com.auth0:java-jwt:3.8.2",
"com.auth0:jwks-rsa:0.8.3",
"com.chuusai:shapeless_2.12:2.3.2",
"com.fasterxml.jackson.core:jackson-annotations:2.9.0",
"com.fasterxml.jackson.core:jackson-core:2.9.9",
"com.fasterxml.jackson.core:jackson-databind:2.9.9.3",
"com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.9",
"com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.9",
"com.fasterxml.jackson.module:jackson-module-scala_2.12:2.9.9",
"com.github.ben-manes.caffeine:caffeine:2.8.0",
"com.github.ghik:silencer-lib_2.12.11:1.6.0",
"com.github.ghik:silencer-plugin_2.12.11:1.6.0",
"com.github.mpilquist:simulacrum_2.12:0.10.0",
"com.github.pureconfig:pureconfig_2.12:0.8.0",
"com.github.scopt:scopt_2.12:3.7.1",
"com.github.stefanbirkner:system-rules:1.17.2",
"com.github.zafarkhaja:java-semver:0.9.0",
"com.google.code.findbugs:jsr305:3.0.2",
"com.google.code.gson:gson:2.8.2",
"com.google.guava:guava:24.0-jre",
"com.google.j2objc:j2objc-annotations:1.1",
"com.google.protobuf:protobuf-java:3.8.0",
ledger-on-sql: Get H2 working in the conformance tests. (#4155) * kvutils: Make logback.xml a base file, rather than the only option. * kvutils/app: Simplify logback.base.xml. Mostly by getting rid of unnecessary appenders. * ledger-on-sql: Add trace logging for all database work. * Upgrade H2; there's a few useful bug fixes. * kvutils/app: Let the user override the server JDBC URL. * kvutils/app: Provide a way to specify the ledger ID. * ledger-on-sql: If there are missing entries in the log, fail on read. This can happen right now because we insert in parallel. Next step: stop doing that. * ledger-on-sql: Stop writing in parallel; it causes race conditions. This unfortunately means we also stop _reading_ in parallel, which is less fun. * Revert "ledger-on-sql: Use a sequential log entry ID." This reverts commit c58265bf43b96d16bfa62ed30a795f365b1e83f2. * ledger-on-sql: Create tables with columns that are not nullable. * ledger-on-sql: The H2 conformance tests now work, just slowly. CHANGELOG_BEGIN CHANGELOG_END * ledger-on-sql: Run tests against H2 and SQLite on memory and disk. * ledger-on-sql: Allow H2 to read from the log in parallel with writes. * ledger-on-sql: Use UUIDs for entry IDs, not 8 random bytes. * ledger-on-sql: Make sure to log the correlation ID. * ledger-on-sql: Do less while holding a database connection. * ledger-on-sql: Log the connection. * ledger-on-sql: We don't need to tell H2 not to drop the connection. The connection pool takes care of that. * ledger-on-sql: Disable H2 conformance tests on CI; they're too slow. * ledger-on-sql: Rename `loggingContext` to `logCtx`. * ledger-on-sql: Don't abuse log contexts; put the data in the message. * ledger-on-sql: Make the connection log line easier to read. And pull out the logger, even if it's only used once. * ledger-on-sql: Run the unit tests against (H2, SQLite) * (memory, file).
2020-01-22 18:54:51 +03:00
"com.h2database:h2:1.4.200",
"com.lihaoyi:pprint_2.12:0.5.3",
"commons-io:commons-io:2.5",
"com.sparkjava:spark-core:2.7.2",
"com.squareup:javapoet:1.11.1",
"com.storm-enroute:scalameter_2.12:0.10.1",
"com.storm-enroute:scalameter-core_2.12:0.10.1",
"com.thesamet.scalapb:compilerplugin_2.12:0.9.0",
"com.thesamet.scalapb:lenses_2.12:0.9.0",
"com.thesamet.scalapb:protoc-bridge_2.12:0.7.8",
"com.thesamet.scalapb:scalapb-runtime_2.12:0.9.0",
"com.thesamet.scalapb:scalapb-runtime-grpc_2.12:0.9.0",
"com.typesafe.akka:akka-actor_2.12:2.6.1",
"com.typesafe.akka:akka-actor-typed_2.12:2.6.1",
"com.typesafe.akka:akka-http_2.12:10.1.11",
"com.typesafe.akka:akka-http-spray-json_2.12:10.1.11",
"com.typesafe.akka:akka-http-testkit_2.12:10.1.11",
"com.typesafe.akka:akka-slf4j_2.12:2.6.1",
"com.typesafe.akka:akka-stream_2.12:2.6.1",
"com.typesafe.akka:akka-stream-testkit_2.12:2.6.1",
"com.typesafe.akka:akka-testkit_2.12:2.6.1",
"com.typesafe.play:anorm_2.12:2.5.3",
"com.typesafe.play:anorm-akka_2.12:2.5.3",
"com.typesafe.scala-logging:scala-logging_2.12:3.9.2",
"com.typesafe.slick:slick_2.12:3.3.0",
"com.typesafe.slick:slick-hikaricp_2.12:3.3.0",
"com.zaxxer:HikariCP:3.2.0",
"io.circe:circe-core_2.12:0.10.0",
"io.circe:circe-generic_2.12:0.10.0",
"io.circe:circe-parser_2.12:0.10.0",
"io.circe:circe-yaml_2.12:0.10.0",
"io.dropwizard.metrics:metrics-core:4.1.2",
Sandbox: Configurable metrics output. (#5113) * sandbox: Clean up `MetricsReporting` a little. Make sure it closes both reporters, and avoid starting things in a constructor. * sandbox: Add hidden options for enable metrics reporting. * sandbox: Add a disambiguating name to the DB connection/thread pools. CHANGELOG_BEGIN - [Sandbox] DB connection pool metrics names have changed slightly, from ``daml.index.db.connection`` to ``daml.index.db.connection.sandbox``. - [Ledger Integration Kit] DB connection pool metrics names have changed to disambiguate the StandaloneApiServer from the StandaloneIndexerServer. The former now has a ``.ledger-api-server`` suffix, and the latter now has a ``.indexer`` suffix. CHANGELOG_END * sandbox-next: Use the same metrics registry for the API and indexer. * sandbox: Give a useful error message on an invalid metrics reporter. And simplify the error messages. With the arguments `--client-auth=foo --metrics-reporter=foo`, we now get the output: ``` Error: Option --client-auth failed when given 'foo'. Must be one of "none", "optional", or "require". Error: Option --metrics-reporter failed when given 'foo'. Must be one of "console", or "csv:PATH". Try --help for more information. ``` * sandbox: Pull out more helpers in `MetricsReporting`. * sandbox: Rename MetricsReporter classes so they don't clash. * sandbox: Wrap the `name` parameter in a `ServerName` tagged string. For safety. Yours, not mine. * sandbox: Push metrics to Graphite with `--metrics-reporter=graphite`. * sandbox: Make `MetricsReporter.Graphite` singly-lazy, not doubly-. Co-Authored-By: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com> * sandbox: Replace `ServerName` with `ServerRole`. * sandbox: Fix usage of `ServerRole.Testing` in `LedgerResource`. Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
2020-03-23 13:59:13 +03:00
"io.dropwizard.metrics:metrics-graphite:4.1.2",
"io.dropwizard.metrics:metrics-jmx:4.1.2",
"io.dropwizard.metrics:metrics-jvm:4.1.2",
"io.grpc:grpc-api:1.22.1",
"io.grpc:grpc-core:1.22.1",
"io.grpc:grpc-netty:1.22.1",
"io.grpc:grpc-protobuf:1.22.1",
"io.grpc:grpc-services:1.22.1",
"io.grpc:grpc-stub:1.22.1",
"io.netty:netty-codec-http2:4.1.37.Final",
"io.netty:netty-handler:4.1.37.Final",
"io.netty:netty-handler-proxy:4.1.37.Final",
"io.netty:netty-resolver:4.1.37.Final",
"io.netty:netty-tcnative-boringssl-static:2.0.25.Final",
"io.protostuff:protostuff-core:1.5.2",
"io.reactivex.rxjava2:rxjava:2.2.1",
"io.spray:spray-json_2.12:1.3.3",
"io.zipkin.brave:brave:4.6.0",
"io.zipkin.reporter:zipkin-sender-okhttp3:1.0.4",
"javax.annotation:javax.annotation-api:1.2",
"javax.ws.rs:javax.ws.rs-api:2.1",
"junit:junit:4.12",
"junit:junit-dep:4.10",
"net.logstash.logback:logstash-logback-encoder:6.3",
"org.apache.commons:commons-lang3:3.9",
"org.apache.commons:commons-text:1.4",
"org.awaitility:awaitility:3.1.6",
"org.checkerframework:checker:2.5.4",
"org.flywaydb:flyway-core:6.2.0",
"org.freemarker:freemarker-gae:2.3.28",
"org.gnieh:diffson-spray-json_2.12:3.1.0",
"org.hamcrest:hamcrest-all:1.3",
"org.jline:jline:3.7.1",
"org.jline:jline-reader:3.7.1",
"org.jooq:jool:0.9.11",
"org.junit.jupiter:junit-jupiter-api:5.0.0",
"org.junit.jupiter:junit-jupiter-engine:5.0.0",
"org.junit.platform:junit-platform-engine:1.0.0",
"org.junit.platform:junit-platform-runner:1.0.0",
"org.mockito:mockito-core:2.24.0",
"org.mockito:mockito-inline:2.24.0",
"org.mockito:mockito-scala_2.12:1.1.2",
"org.mongodb:bson:3.6.4",
"org.mongodb:casbah-commons_2.12.0-RC1:3.1.1",
"org.mongodb:casbah-core_2.12.0-RC1:3.1.1",
"org.mongodb:casbah-gridfs_2.12.0-RC1:3.1.1",
"org.mongodb:casbah-query_2.12.0-RC1:3.1.1",
"org.mongodb:mongodb-driver-async:3.6.4",
"org.mongodb:mongodb-driver-core:3.6.4",
"org.pcollections:pcollections:2.1.3",
"org.postgresql:postgresql:42.2.9",
"org.reactivestreams:reactive-streams:1.0.2",
"org.reactivestreams:reactive-streams-tck:1.0.2",
"org.sangria-graphql:sangria_2.12:1.4.2",
"org.sangria-graphql:sangria-spray-json_2.12:1.0.1",
"org.scalacheck:scalacheck_2.12:1.14.0",
"org.scala-lang.modules:scala-java8-compat_2.12:0.9.0",
"org.scala-lang.modules:scala-parser-combinators_2.12:1.0.4",
"org.scalameta:contrib_2.12:1.8.0",
"org.scalameta:paradise_2.12.6:3.0.0-M11",
"org.scalameta:scalameta_2.12:1.8.0",
"org.scala-sbt:sbt:1.1.4",
"org.scalactic:scalactic_2.12:3.0.5",
"org.scalatest:scalatest_2.12:3.0.5",
"org.scalaz:scalaz-concurrent_2.12:7.2.24",
"org.scalaz:scalaz-core_2.12:7.2.24",
"org.scalaz:scalaz-scalacheck-binding_2.12:7.2.24-scalacheck-1.14",
"org.seleniumhq.selenium:selenium-java:3.12.0",
"org.slf4j:slf4j-api:1.7.26",
"org.slf4j:slf4j-simple:1.7.26",
"org.spire-math:kind-projector_2.12:0.9.3",
"org.testcontainers:postgresql:1.4.2",
"org.tpolecat:doobie-core_2.12:0.6.0",
"org.tpolecat:doobie-postgres_2.12:0.6.0",
"org.typelevel:paiges-core_2.12:0.2.1",
"org.wartremover:wartremover_2.12:2.2.0",
"org.xerial:sqlite-jdbc:3.30.1",
"uk.co.datumedge:hamcrest-json:0.2",
],
2019-10-29 17:43:56 +03:00
fetch_sources = True,
maven_install_json = "@com_github_digital_asset_daml//:maven_install.json",
override_targets = {
# Replacements for core Scala libraries.
# These libraries must be provided by the Scala toolchain.
#
# Without these you may get obscure compiler errors about missing implicits,
# or types that should be `Any`.
# This needs to be kept in sync with //bazel-tools:pom_file.bzl
"org.scala-lang:scala-compiler": "@io_bazel_rules_scala_scala_compiler//:io_bazel_rules_scala_scala_compiler",
"org.scala-lang:scala-library": "@io_bazel_rules_scala_scala_library//:io_bazel_rules_scala_scala_library",
"org.scala-lang:scala-reflect": "@io_bazel_rules_scala_scala_reflect//:io_bazel_rules_scala_scala_reflect",
"org.scala-lang.modules:scala-parser-combinators": "@io_bazel_rules_scala_scala_parser_combinators//:io_bazel_rules_scala_scala_parser_combinators",
"org.scala-tools.testing:test-interface": "//:org_scala_sbt_test_interface",
"org.scalactic:scalactic_2.12": "@io_bazel_rules_scala_scalactic//:io_bazel_rules_scala_scalactic",
"org.scalatest:scalatest_2.12": "@io_bazel_rules_scala_scalatest//:io_bazel_rules_scala_scalatest",
},
repositories = [
"https://repo1.maven.org/maven2",
],
# The strict_visibility attribute controls whether all artifacts should
# be visible (including transitive dependencies), or whether only
# explicitly declared artifacts should be visible. The targets
# generated by maven_install do not forward transitive dependencies.
# Instead, users need to explicitly declare each package a dependency
# from which they wish to import. This makes strict visibility
# inconvenient as one would have to pin versions of transitive
# dependencies in this file, which complicates version updates later
# on. Therfore, we don't enable strict visibility. This is the default.
# strict_visibility = True,
version_conflict_policy = "pinned",
)