2020-03-27 03:26:10 +03:00
|
|
|
# Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2019-10-28 15:53:14 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-12-19 00:50:14 +03:00
|
|
|
# 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
|
|
|
|
|
2019-10-28 15:53:14 +03:00
|
|
|
load("@rules_jvm_external//:defs.bzl", "maven_install")
|
2020-08-04 11:01:58 +03:00
|
|
|
load("@rules_jvm_external//:specs.bzl", "maven")
|
2019-10-28 15:53:14 +03:00
|
|
|
|
|
|
|
def install_java_deps():
|
|
|
|
maven_install(
|
|
|
|
artifacts = [
|
|
|
|
"ai.x:diff_2.12:2.0.1",
|
|
|
|
"ch.qos.logback:logback-classic:1.2.3",
|
|
|
|
"ch.qos.logback:logback-core:1.2.3",
|
2020-05-28 00:22:33 +03:00
|
|
|
"com.auth0:java-jwt:3.10.3",
|
2020-06-11 20:59:30 +03:00
|
|
|
"com.auth0:jwks-rsa:0.11.0",
|
2019-10-28 15:53:14 +03:00
|
|
|
"com.chuusai:shapeless_2.12:2.3.2",
|
2020-04-06 20:30:32 +03:00
|
|
|
"com.github.ben-manes.caffeine:caffeine:2.8.0",
|
2020-10-13 15:42:14 +03:00
|
|
|
"com.github.ghik:silencer-lib_2.12.12:1.7.1",
|
|
|
|
"com.github.ghik:silencer-plugin_2.12.12:1.7.1",
|
2019-10-28 15:53:14 +03:00
|
|
|
"com.github.pureconfig:pureconfig_2.12:0.8.0",
|
2020-08-04 11:01:58 +03:00
|
|
|
maven.artifact("com.github.pureconfig", "pureconfig-macros_2.12", "0.8.0", neverlink = True),
|
2019-10-28 15:53:14 +03:00
|
|
|
"com.github.scopt:scopt_2.12:3.7.1",
|
|
|
|
"com.google.code.findbugs:jsr305:3.0.2",
|
|
|
|
"com.google.code.gson:gson:2.8.2",
|
2020-08-28 15:55:04 +03:00
|
|
|
"com.google.guava:guava:29.0-jre",
|
2020-01-22 18:54:51 +03:00
|
|
|
"com.h2database:h2:1.4.200",
|
2019-10-28 15:53:14 +03:00
|
|
|
"com.lihaoyi:pprint_2.12:0.5.3",
|
|
|
|
"commons-io:commons-io:2.5",
|
2020-06-25 17:51:36 +03:00
|
|
|
"com.sparkjava:spark-core:2.9.1",
|
2019-10-28 15:53:14 +03:00
|
|
|
"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",
|
2020-11-25 12:13:51 +03:00
|
|
|
"com.typesafe.akka:akka-actor_2.12:2.6.10",
|
|
|
|
"com.typesafe.akka:akka-actor-typed_2.12:2.6.10",
|
2020-11-25 15:39:25 +03:00
|
|
|
"com.typesafe.akka:akka-http_2.12:10.2.1",
|
|
|
|
"com.typesafe.akka:akka-http-spray-json_2.12:10.2.1",
|
|
|
|
"com.typesafe.akka:akka-http-testkit_2.12:10.2.1",
|
2020-11-25 12:13:51 +03:00
|
|
|
"com.typesafe.akka:akka-slf4j_2.12:2.6.10",
|
|
|
|
"com.typesafe.akka:akka-stream_2.12:2.6.10",
|
|
|
|
"com.typesafe.akka:akka-stream-testkit_2.12:2.6.10",
|
|
|
|
"com.typesafe.akka:akka-testkit_2.12:2.6.10",
|
2019-10-28 15:53:14 +03:00
|
|
|
"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.zaxxer:HikariCP:3.2.0",
|
2020-05-27 14:08:45 +03:00
|
|
|
"eu.rekawek.toxiproxy:toxiproxy-java:2.1.3",
|
2019-10-28 15:53:14 +03:00
|
|
|
"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",
|
2020-01-09 15:25:47 +03:00
|
|
|
"io.dropwizard.metrics:metrics-core:4.1.2",
|
2020-03-23 13:59:13 +03:00
|
|
|
"io.dropwizard.metrics:metrics-graphite:4.1.2",
|
2020-01-09 15:25:47 +03:00
|
|
|
"io.dropwizard.metrics:metrics-jmx:4.1.2",
|
|
|
|
"io.dropwizard.metrics:metrics-jvm:4.1.2",
|
2020-05-27 20:44:34 +03:00
|
|
|
|
|
|
|
# Bumping versions of io.grpc:* has a few implications:
|
|
|
|
# 1. io.grpc:grpc-protobuf has a dependency on com.google.protobuf:protobuf-java, which in
|
|
|
|
# turn needs to be aligned with the version of protoc we are using (as declared in deps.bzl).
|
|
|
|
# ScalaPB also depends on a version of protobuf-java, but for the most part we expect here a
|
|
|
|
# version mismatch between ScalaPBs declared protobuf-java dependency and the version on the
|
|
|
|
# classpath doesn't matter.
|
|
|
|
#
|
|
|
|
# 2. To keep TLS for the Ledger API Server working, the following three artifacts need be updated
|
|
|
|
# in sync according to https://github.com/grpc/grpc-java/blob/master/SECURITY.md#netty
|
|
|
|
#
|
|
|
|
# * io.grpc:grpc-netty
|
|
|
|
# * io.netty:netty-handler
|
|
|
|
# * io.netty:netty-tcnative-boringssl-static
|
|
|
|
#
|
|
|
|
# This effectively means all io.grpc:*, io.netty:*, and `com.google.protobuf:protobuf-java
|
|
|
|
# need to be updated with careful consideration.
|
|
|
|
# grpc
|
|
|
|
"io.grpc:grpc-api:1.29.0",
|
|
|
|
"io.grpc:grpc-core:1.29.0",
|
|
|
|
"io.grpc:grpc-netty:1.29.0",
|
|
|
|
"io.grpc:grpc-protobuf:1.29.0",
|
|
|
|
"io.grpc:grpc-services:1.29.0",
|
|
|
|
"io.grpc:grpc-stub:1.29.0",
|
|
|
|
# netty
|
|
|
|
"io.netty:netty-codec-http2:4.1.48.Final",
|
|
|
|
"io.netty:netty-handler:4.1.48.Final",
|
|
|
|
"io.netty:netty-handler-proxy:4.1.48.Final",
|
|
|
|
"io.netty:netty-resolver:4.1.48.Final",
|
|
|
|
"io.netty:netty-tcnative-boringssl-static:2.0.30.Final",
|
|
|
|
# protobuf
|
|
|
|
"com.google.protobuf:protobuf-java:3.11.0",
|
|
|
|
#scalapb
|
|
|
|
"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",
|
|
|
|
# ---- end of grpc-protobuf-netty block
|
2019-10-28 15:53:14 +03:00
|
|
|
"io.reactivex.rxjava2:rxjava:2.2.1",
|
2020-05-27 20:44:34 +03:00
|
|
|
"io.spray:spray-json_2.12:1.3.5",
|
2019-10-28 15:53:14 +03:00
|
|
|
"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",
|
2020-01-16 15:05:40 +03:00
|
|
|
"net.logstash.logback:logstash-logback-encoder:6.3",
|
2019-10-28 15:53:14 +03:00
|
|
|
"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",
|
2020-06-29 17:07:21 +03:00
|
|
|
"org.flywaydb:flyway-core:6.5.0",
|
2019-10-28 15:53:14 +03:00
|
|
|
"org.freemarker:freemarker-gae:2.3.28",
|
2020-05-27 20:44:34 +03:00
|
|
|
"org.gnieh:diffson-spray-json_2.12:3.1.1",
|
2019-10-28 15:53:14 +03:00
|
|
|
"org.jline:jline:3.7.1",
|
|
|
|
"org.jline:jline-reader:3.7.1",
|
|
|
|
"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",
|
2020-01-16 15:05:40 +03:00
|
|
|
"org.mockito:mockito-core:2.24.0",
|
|
|
|
"org.mockito:mockito-inline:2.24.0",
|
|
|
|
"org.mockito:mockito-scala_2.12:1.1.2",
|
2019-10-28 15:53:14 +03:00
|
|
|
"org.pcollections:pcollections:2.1.3",
|
2020-12-01 15:06:36 +03:00
|
|
|
"org.postgresql:postgresql:42.2.18",
|
2019-10-28 15:53:14 +03:00
|
|
|
"org.reactivestreams:reactive-streams:1.0.2",
|
|
|
|
"org.reactivestreams:reactive-streams-tck:1.0.2",
|
|
|
|
"org.sangria-graphql:sangria_2.12:1.4.2",
|
2020-05-27 20:44:34 +03:00
|
|
|
"org.sangria-graphql:sangria-spray-json_2.12:1.0.2",
|
2019-10-28 15:53:14 +03:00
|
|
|
"org.scalacheck:scalacheck_2.12:1.14.0",
|
2020-05-28 01:27:25 +03:00
|
|
|
"org.scala-lang.modules:scala-collection-compat_2.12:2.1.6",
|
2019-10-28 15:53:14 +03:00
|
|
|
"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.scala-sbt:sbt:1.1.4",
|
2020-01-13 20:43:52 +03:00
|
|
|
"org.scalactic:scalactic_2.12:3.0.5",
|
|
|
|
"org.scalatest:scalatest_2.12:3.0.5",
|
2019-10-28 15:53:14 +03:00
|
|
|
"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",
|
2020-10-16 16:46:20 +03:00
|
|
|
"org.tpolecat:doobie-core_2.12:0.9.2",
|
|
|
|
"org.tpolecat:doobie-postgres_2.12:0.9.2",
|
2019-10-28 15:53:14 +03:00
|
|
|
"org.typelevel:paiges-core_2.12:0.2.1",
|
2020-10-13 15:42:14 +03:00
|
|
|
"org.wartremover:wartremover_2.12.12:2.4.10",
|
2020-01-24 17:33:11 +03:00
|
|
|
"org.xerial:sqlite-jdbc:3.30.1",
|
2020-08-04 21:51:44 +03:00
|
|
|
# gatling dependencies
|
2020-09-02 16:00:43 +03:00
|
|
|
"io.gatling:gatling-app:3.3.1",
|
2020-08-04 21:51:44 +03:00
|
|
|
"io.gatling:gatling-core:3.3.1",
|
|
|
|
"io.gatling:gatling-commons:3.3.1",
|
|
|
|
"io.gatling:gatling-recorder:3.3.1",
|
|
|
|
"io.gatling:gatling-charts:3.3.1",
|
2020-09-02 16:00:43 +03:00
|
|
|
"io.gatling.highcharts:gatling-highcharts:3.3.1",
|
2020-08-04 21:51:44 +03:00
|
|
|
"io.gatling:gatling-http:3.3.1",
|
|
|
|
"io.gatling:gatling-http-client:3.3.1",
|
2020-09-10 21:32:01 +03:00
|
|
|
"com.fasterxml.jackson.core:jackson-core:2.11.2",
|
|
|
|
"com.fasterxml.jackson.core:jackson-databind:2.11.2",
|
2019-10-28 15:53:14 +03:00
|
|
|
],
|
2019-10-29 17:43:56 +03:00
|
|
|
fetch_sources = True,
|
2019-10-28 15:53:14 +03:00
|
|
|
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",
|
2020-01-13 20:43:52 +03:00
|
|
|
"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",
|
2019-10-28 15:53:14 +03:00
|
|
|
},
|
|
|
|
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
|
2020-07-21 21:32:58 +03:00
|
|
|
# on. Therefore, we don't enable strict visibility. This is the default.
|
2019-10-28 15:53:14 +03:00
|
|
|
# strict_visibility = True,
|
|
|
|
version_conflict_policy = "pinned",
|
|
|
|
)
|