Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbrauner-da committed Oct 17, 2024
1 parent e5b2879 commit d866d90
Show file tree
Hide file tree
Showing 3 changed files with 2,167 additions and 17,924 deletions.
11 changes: 11 additions & 0 deletions sdk/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,17 @@ switched_rules_by_language(
java = True,
)

# WORKSPACE

load("//bazel_tools:read_common_deps_json.bzl", "read_common_deps_json")

read_common_deps_json(
name = "common_deps",
json_file = "//:all-common-dependencies.json",
output_file = "common_deps.bzl",
)


load("//:bazel-java-deps.bzl", "install_java_deps")

install_java_deps()
Expand Down
211 changes: 3 additions & 208 deletions sdk/bazel-java-deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ load(
"scalapb_protoc_version",
"scalapb_version",
)
load("@common_deps//:common_deps.bzl", "DEPS")

version_specific = {
}
Expand Down Expand Up @@ -67,214 +68,8 @@ circe_version = "0.14.2"

def install_java_deps():
maven_install(
artifacts = version_specific.get(scala_major_version, []) + [
"ch.qos.logback:logback-classic:1.4.14",
"ch.qos.logback:logback-core:1.4.14",
"com.auth0:java-jwt:4.2.1",
"com.auth0:jwks-rsa:0.21.2",
"com.chuusai:shapeless_{}:2.3.6".format(scala_major_version),
"com.fasterxml.jackson.core:jackson-core:2.14.3",
"com.fasterxml.jackson.core:jackson-databind:2.14.3",
"com.github.ben-manes.caffeine:caffeine:3.1.2",
"com.github.blemale:scaffeine_{}:5.2.1".format(scala_major_version),
"com.github.pathikrit:better-files_{}:3.9.2".format(scala_major_version),
"com.github.pureconfig:pureconfig-cats_{}:0.14.0".format(scala_major_version),
"com.github.pureconfig:pureconfig-core_{}:0.14.0".format(scala_major_version),
"com.github.pureconfig:pureconfig-generic_{}:0.14.0".format(scala_major_version),
"com.github.pureconfig:pureconfig_{}:0.14.0".format(scala_major_version),
"com.github.scopt:scopt_{}:4.1.0".format(scala_major_version),
"com.github.tototoshi:scala-csv_{}:1.3.10".format(scala_major_version),
"com.google.code.findbugs:jsr305:3.0.2",
"com.google.code.gson:gson:2.10",
"com.google.crypto.tink:tink:1.12.0",
"com.google.guava:guava:{}".format(guava_version),
"com.google.protobuf:protobuf-java-util:{}".format(protobuf_version),
"com.google.protobuf:protobuf-java:{}".format(protobuf_version),
"com.h2database:h2:2.1.210",
"com.lihaoyi:ammonite-compiler_{}:3.0.0".format(scala_version),
"com.lihaoyi:ammonite-compiler-interface_{}:3.0.0".format(scala_version),
"com.lihaoyi:ammonite-interp-api_{}:3.0.0".format(scala_version),
"com.lihaoyi:ammonite-interp_{}:3.0.0".format(scala_version),
"com.lihaoyi:ammonite-repl_{}:3.0.0".format(scala_version),
"com.lihaoyi:ammonite-runtime_{}:3.0.0".format(scala_version),
"com.lihaoyi:ammonite-util_{}:3.0.0".format(scala_major_version),
"com.lihaoyi:ammonite_{}:3.0.0".format(scala_version),
"com.lihaoyi:fansi_{}:0.4.0".format(scala_major_version),
"com.lihaoyi:geny_{}:1.1.1".format(scala_major_version),
"com.lihaoyi:os-lib_{}:0.10.7".format(scala_major_version),
"com.lihaoyi:pprint_{}:0.8.1".format(scala_major_version),
"com.lihaoyi:sourcecode_{}:0.3.0".format(scala_major_version),
"com.lihaoyi:ujson_{}:{}".format(scala_major_version, ujson_version),
"com.lihaoyi:ujson-circe_{}:{}".format(scala_major_version, ujson_version),
"com.lihaoyi:upickle-core_{}:{}".format(scala_major_version, ujson_version),
"com.oracle.database.jdbc.debug:ojdbc8_g:19.18.0.0",
"com.oracle.database.jdbc:ojdbc8:19.18.0.0",
"com.softwaremill.sttp.apispec:asyncapi-circe-yaml_{}:{}".format(scala_major_version, apispec_version),
"com.softwaremill.sttp.apispec:openapi-circe-yaml_{}:{}".format(scala_major_version, apispec_version),
"com.softwaremill.sttp.apispec:asyncapi-model_{}:{}".format(scala_major_version, apispec_version),
"com.softwaremill.sttp.apispec:openapi-model_{}:{}".format(scala_major_version, apispec_version),
"com.softwaremill.sttp.tapir:tapir-json-circe_{}:{}".format(scala_major_version, tapir_version),
"com.softwaremill.sttp.tapir:tapir-asyncapi-docs_{}:{}".format(scala_major_version, tapir_version),
"com.softwaremill.sttp.tapir:tapir-openapi-docs_{}:{}".format(scala_major_version, tapir_version),
"com.softwaremill.sttp.tapir:tapir-pekko-http-server_{}:{}".format(scala_major_version, tapir_version),
"com.sparkjava:spark-core:2.9.4",
"com.squareup:javapoet:1.13.0",
"com.storm-enroute:scalameter-core_{}:0.21".format(scala_major_version),
"com.storm-enroute:scalameter_{}:0.21".format(scala_major_version),
"com.thesamet.scalapb:compilerplugin_{}:{}".format(scala_major_version, scalapb_version),
"com.thesamet.scalapb:lenses_{}:{}".format(scala_major_version, scalapb_version),
"com.thesamet.scalapb:protoc-bridge_{}:{}".format(scala_major_version, scalapb_protoc_version),
"com.thesamet.scalapb:protoc-gen_{}:{}".format(scala_major_version, scalapb_protoc_version),
"com.thesamet.scalapb:scalapb-json4s_{}:0.11.1".format(scala_major_version, scalapb_version),
"com.thesamet.scalapb:scalapb-runtime-grpc_{}:{}".format(scala_major_version, scalapb_version),
"com.thesamet.scalapb:scalapb-runtime_{}:{}".format(scala_major_version, scalapb_version),
"org.apache.pekko:pekko-actor-testkit-typed_{}:{}".format(scala_major_version, pekko_version),
"org.apache.pekko:pekko-actor-typed_{}:{}".format(scala_major_version, pekko_version),
"org.apache.pekko:pekko-actor_{}:{}".format(scala_major_version, pekko_version),
"org.apache.pekko:pekko-http-spray-json_{}:{}".format(scala_major_version, pekko_http_version),
"org.apache.pekko:pekko-http-testkit_{}:{}".format(scala_major_version, pekko_http_version),
"org.apache.pekko:pekko-http_{}:{}".format(scala_major_version, pekko_http_version),
"org.apache.pekko:pekko-slf4j_{}:{}".format(scala_major_version, pekko_version),
"org.apache.pekko:pekko-stream-testkit_{}:{}".format(scala_major_version, pekko_version),
"org.apache.pekko:pekko-stream_{}:{}".format(scala_major_version, pekko_version),
"org.apache.pekko:pekko-testkit_{}:{}".format(scala_major_version, pekko_version),
"com.typesafe.scala-logging:scala-logging_{}:3.9.5".format(scala_major_version),
"com.typesafe.slick:slick-hikaricp_{}:3.5.2".format(scala_major_version),
"com.typesafe.slick:slick_{}:3.5.2".format(scala_major_version),
"com.zaxxer:HikariCP:3.2.0",
"commons-codec:commons-codec:1.11",
"commons-io:commons-io:2.11.0",
"dev.optics:monocle-core_{}:3.2.0".format(scala_major_version),
"dev.optics:monocle-macro_{}:3.2.0".format(scala_major_version),
"eu.rekawek.toxiproxy:toxiproxy-java:2.1.7",
"io.chrisdavenport:cats-scalacheck_{}:0.3.2".format(scala_major_version),
"io.circe:circe-core_{}:{}".format(scala_major_version, circe_version),
"io.circe:circe-generic-extras_{}:{}".format(scala_major_version, circe_version),
"io.circe:circe-generic_{}:{}".format(scala_major_version, circe_version),
"io.circe:circe-parser_{}:{}".format(scala_major_version, circe_version),
"io.circe:circe-optics_{}:{}".format(scala_major_version, "0.15.0"),
"io.circe:circe-yaml_{}:{}".format(scala_major_version, "0.15.0-RC1"),
# "io.gatling.highcharts:gatling-charts-highcharts:{}".format(gatling_version),
# "io.gatling:gatling-app:{}".format(gatling_version),
# "io.gatling:gatling-charts:{}".format(gatling_version),
# "io.gatling:gatling-commons:{}".format(gatling_version),
# "io.gatling:gatling-core:{}".format(gatling_version),
# "io.gatling:gatling-http-client:{}".format(gatling_version),
# "io.gatling:gatling-http:{}".format(gatling_version),
# "io.gatling:gatling-recorder:{}".format(gatling_version),
"io.get-coursier:interface:0.0.21",
"io.github.paoloboni:spray-json-derived-codecs_{}:2.3.10".format(scala_major_version),
"io.grpc:grpc-api:{}".format(grpc_version),
# grpc-core has a *runtime* dependency on grpc-util, and grpc-util has a dependency on
# grpc-core. Because maven_install doesn't differentiate between runtime and
# compile-time deps (https://github.com/bazelbuild/rules_jvm_external/issues/966), we
# need to manually exclude grpc-util from the dependencies of grpc-core.
maven.artifact(
artifact = "grpc-core",
exclusions = [
"io.grpc:grpc-util",
],
group = "io.grpc",
version = grpc_version,
),
"io.grpc:grpc-inprocess:{}".format(grpc_version),
"io.grpc:grpc-netty:{}".format(grpc_version),
"io.grpc:grpc-protobuf:{}".format(grpc_version),
"io.grpc:grpc-services:{}".format(grpc_version),
"io.grpc:grpc-stub:{}".format(grpc_version),
"io.grpc:grpc-util:{}".format(grpc_version),
"io.netty:netty-buffer:{}".format(netty_version),
"io.netty:netty-codec-http2:{}".format(netty_version),
"io.netty:netty-handler-proxy:{}".format(netty_version),
"io.netty:netty-handler:{}".format(netty_version),
"io.netty:netty-resolver:{}".format(netty_version),
"io.netty:netty-tcnative-boringssl-static:{}".format(netty_tcnative_version),
"io.opentelemetry.instrumentation:opentelemetry-grpc-1.6:{}".format(opentelemetry_instrumentation_version),
"io.opentelemetry.instrumentation:opentelemetry-runtime-telemetry-java8:{}".format(opentelemetry_instrumentation_version),
"io.opentelemetry.instrumentation:opentelemetry-hikaricp-3.0:{}".format(opentelemetry_instrumentation_version),
"io.opentelemetry:opentelemetry-api:{}".format(opentelemetry_version),
"io.opentelemetry:opentelemetry-context:{}".format(opentelemetry_version),
"io.opentelemetry:opentelemetry-exporter-common:{}".format(opentelemetry_version),
"io.opentelemetry:opentelemetry-exporter-otlp:{}".format(opentelemetry_version),
"io.opentelemetry:opentelemetry-exporter-otlp-common:{}".format(opentelemetry_version),
"io.opentelemetry:opentelemetry-exporter-prometheus:{}-alpha".format(opentelemetry_version),
"io.opentelemetry:opentelemetry-exporter-zipkin:{}".format(opentelemetry_version),
"io.opentelemetry:opentelemetry-sdk-common:{}".format(opentelemetry_version),
"io.opentelemetry:opentelemetry-sdk-logs:{}".format(opentelemetry_version),
"io.opentelemetry:opentelemetry-sdk-metrics:{}".format(opentelemetry_version),
"io.opentelemetry:opentelemetry-sdk-testing:{}".format(opentelemetry_version),
"io.opentelemetry:opentelemetry-sdk-trace:{}".format(opentelemetry_version),
"io.opentelemetry:opentelemetry-sdk:{}".format(opentelemetry_version),
"io.prometheus:simpleclient:{}".format(prometheus_version),
"io.prometheus:simpleclient_httpserver:{}".format(prometheus_version),
"io.prometheus:simpleclient_servlet:{}".format(prometheus_version),
"io.reactivex.rxjava2:rxjava:2.2.21",
"io.scalaland:chimney_{}:1.4.0".format(scala_major_version),
"io.scalaland:chimney-macro-commons_{}:1.4.0".format(scala_major_version),
"io.spray:spray-json_{}:1.3.6".format(scala_major_version),
"javax.annotation:javax.annotation-api:1.3.2",
"javax.ws.rs:javax.ws.rs-api:2.1",
"net.logstash.logback:logstash-logback-encoder:6.6",
"org.apache.commons:commons-lang3:3.12.0",
"org.apache.commons:commons-text:1.10.0",
"org.apache.logging.log4j:log4j-core:2.17.0",
"org.awaitility:awaitility:4.2.0",
"org.bouncycastle:bcpkix-jdk15on:1.70",
"org.bouncycastle:bcprov-jdk15on:1.70",
"org.checkerframework:checker:3.28.0",
"org.codehaus.janino:janino:3.1.4",
"org.flywaydb:flyway-core:8.4.1",
"org.freemarker:freemarker-gae:2.3.32",
"org.jline:jline-reader:3.22.0",
"org.jline:jline:3.22.0",
"org.junit.jupiter:junit-jupiter-api:5.9.2",
"org.junit.jupiter:junit-jupiter-engine:5.9.2",
"org.junit.platform:junit-platform-engine:1.9.2",
"org.junit.platform:junit-platform-runner:1.9.2",
"org.mockito:mockito-core:3.6.28",
"org.mockito:mockito-inline:3.6.28",
"org.mockito:mockito-scala_{}:1.16.3".format(scala_major_version),
"org.pcollections:pcollections:4.0.1",
"org.playframework.anorm:anorm-tokenizer_{}:2.7.0".format(scala_major_version),
"org.playframework.anorm:anorm_{}:2.7.0".format(scala_major_version),
"org.postgresql:postgresql:42.6.0",
"org.reactivestreams:reactive-streams-tck:1.0.4",
"org.reactivestreams:reactive-streams:1.0.4",
"org.reflections:reflections:0.9.12",
"org.sangria-graphql:sangria-spray-json_{}:1.0.2".format(scala_major_version),
"org.sangria-graphql:sangria_{}:4.0.2".format(scala_major_version),
"org.scala-lang.modules:scala-collection-contrib_{}:0.2.2".format(scala_major_version),
"org.scala-lang.modules:scala-parallel-collections_{}:1.0.4".format(scala_major_version),
"org.scala-lang:scala-library:{}".format(scala_version),
"org.scalacheck:scalacheck_{}:1.15.4".format(scala_major_version),
"org.scalactic:scalactic_{}:3.2.11".format(scala_major_version),
"org.scalameta:munit_{}:0.7.26".format(scala_major_version),
"org.scalatest:scalatest_{}:3.2.11".format(scala_major_version),
"org.scalatestplus:scalacheck-1-15_{}:3.2.11.0".format(scala_major_version),
"org.scalatestplus:testng-7-5_{}:3.2.11.0".format(scala_major_version),
"org.scalaz:scalaz-core_{}:7.2.33".format(scala_major_version),
"org.scalaz:scalaz-scalacheck-binding_{}:7.2.33-scalacheck-1.15".format(scala_major_version),
"org.slf4j:jul-to-slf4j:2.0.6",
"org.slf4j:jul-to-slf4j:2.0.6",
"org.slf4j:slf4j-api:2.0.6",
"org.slf4j:slf4j-simple:2.0.6",
"org.testcontainers:jdbc:1.19.7",
"org.testcontainers:postgresql:1.19.7",
"org.testcontainers:testcontainers:1.19.7",
"org.tpolecat:doobie-core_{}:0.13.4".format(scala_major_version),
"org.tpolecat:doobie-hikari_{}:0.13.4".format(scala_major_version),
"org.tpolecat:doobie-postgres_{}:0.13.4".format(scala_major_version),
"org.tpolecat:typename_{}:1.1.0".format(scala_major_version),
"org.typelevel:cats-core_{}:2.9.0".format(scala_major_version),
"org.typelevel:cats-free_{}:2.9.0".format(scala_major_version),
"org.typelevel:cats-kernel_{}:2.9.0".format(scala_major_version),
"org.typelevel:cats-laws_{}:2.9.0".format(scala_major_version),
"org.typelevel:kind-projector_{}:0.13.2".format(scala_version),
"org.typelevel:paiges-core_{}:0.4.2".format(scala_major_version),
"org.wartremover:wartremover_{}:2.4.21".format(scala_version),
"org.xerial:sqlite-jdbc:3.36.0.1",
maven.artifact("com.github.pureconfig", "pureconfig-macros_2.12", "0.14.0", neverlink = True),
],
artifacts = version_specific.get(scala_major_version, []) +
["{}:{}:{}".format(d["org"], d["artifact"], d["version"]) for d in DEPS],
fetch_sources = True,
maven_install_json = "@com_github_digital_asset_daml//:maven_install_{}.json".format(scala_major_version),
override_targets = {
Expand Down
Loading

0 comments on commit d866d90

Please sign in to comment.