Skip to content

Commit

Permalink
Drop 2.12 versioned_scala_deps (#11748)
Browse files Browse the repository at this point in the history
I’ve kept the infrastructure for versioned_scala_deps around because
I’m optimistic and hope that eventually we’ll do another Scala upgrade.

changelog_begin
changelog_end
  • Loading branch information
cocreature authored Nov 17, 2021
1 parent c77e150 commit fa76631
Show file tree
Hide file tree
Showing 36 changed files with 156 additions and 293 deletions.
26 changes: 11 additions & 15 deletions bazel-java-deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,6 @@ load(
)

version_specific = {
"2.12": [
],
"2.13": [
"org.scala-lang.modules:scala-parallel-collections_2.13:1.0.0",
# Gatling does not cross-build so this is limited to Scala 2.13.
"io.gatling:gatling-app:3.5.1",
"io.gatling:gatling-core:3.5.1",
"io.gatling:gatling-commons:3.5.1",
"io.gatling:gatling-recorder:3.5.1",
"io.gatling:gatling-charts:3.5.1",
"io.gatling.highcharts:gatling-charts-highcharts:3.5.1",
"io.gatling:gatling-http:3.5.1",
"io.gatling:gatling-http-client:3.5.1",
],
}

netty_version = "4.1.67.Final"
Expand All @@ -44,8 +30,9 @@ netty_version = "4.1.67.Final"
# <tcnative.version>2.0.42.Final</tcnative.version>
# ```
netty_tcnative_version = "2.0.40.Final"
grpc_version = "1.41.0"
grpc_version = "1.35.0"
akka_version = "2.6.13"
gatling_version = "3.5.1"

def install_java_deps():
maven_install(
Expand Down Expand Up @@ -148,6 +135,14 @@ def install_java_deps():
"com.thesamet.scalapb:scalapb-runtime_{}:{}".format(scala_major_version, scalapb_version),
"com.thesamet.scalapb:scalapb-runtime-grpc_{}:{}".format(scala_major_version, scalapb_version),
# ---- end of grpc-protobuf-netty block
"io.gatling:gatling-app:{}".format(gatling_version),
"io.gatling:gatling-core:{}".format(gatling_version),
"io.gatling:gatling-commons:{}".format(gatling_version),
"io.gatling:gatling-recorder:{}".format(gatling_version),
"io.gatling:gatling-charts:{}".format(gatling_version),
"io.gatling.highcharts:gatling-charts-highcharts:{}".format(gatling_version),
"io.gatling:gatling-http:{}".format(gatling_version),
"io.gatling:gatling-http-client:{}".format(gatling_version),
"io.reactivex.rxjava2:rxjava:2.2.1",
"io.spray:spray-json_{}:1.3.5".format(scala_major_version),
"javax.annotation:javax.annotation-api:1.2",
Expand Down Expand Up @@ -181,6 +176,7 @@ def install_java_deps():
"org.scalacheck:scalacheck_{}:1.15.4".format(scala_major_version),
"org.scala-lang.modules:scala-collection-compat_{}:2.3.2".format(scala_major_version),
"org.scala-lang.modules:scala-java8-compat_{}:0.9.0".format(scala_major_version),
"org.scala-lang.modules:scala-parallel-collections_{}:1.0.0".format(scala_major_version),
"org.scalameta:munit_{}:0.7.26".format(scala_major_version),
"org.scalactic:scalactic_{}:3.2.9".format(scala_major_version),
"org.scalatest:scalatest_{}:3.2.9".format(scala_major_version),
Expand Down
3 changes: 0 additions & 3 deletions compiler/repl-service/server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ da_scala_binary(
"@maven//:org_scalaz_scalaz_core",
],
scalacopts = repl_scalacopts,
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
],
Expand Down
3 changes: 0 additions & 3 deletions daml-lf/archive/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ da_scala_test_suite(
"@maven//:org_scalaz_scalaz_scalacheck_binding",
],
scalacopts = lf_scalacopts,
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
deps = [
":daml_lf_1.11_archive_proto_java",
":daml_lf_1.12_archive_proto_java",
Expand Down
5 changes: 0 additions & 5 deletions daml-lf/encoder/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ da_scala_test_suite(
"@maven//:org_scalaz_scalaz_core",
],
scalacopts = lf_scalacopts,
versioned_scala_deps = {
"2.12": [
"@maven//:org_scala_lang_modules_scala_collection_compat",
],
},
deps = [
":encoder",
"//bazel_tools/runfiles:scala_runfiles",
Expand Down
3 changes: 0 additions & 3 deletions daml-lf/engine/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ da_scala_library(
],
scalacopts = lf_scalacopts_stricter,
tags = ["maven_coordinates=com.daml:daml-lf-engine:__VERSION__"],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
visibility = ["//visibility:public"],
deps = [
"//daml-lf/data",
Expand Down
12 changes: 9 additions & 3 deletions daml-lf/interpreter/perf/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ da_scala_binary(
":JsonParser.dar.pp",
],
main_class = "com.daml.lf.speedy.explore.ExploreDar",
versioned_scala_deps = {"2.13": ["@maven//:org_scalaz_scalaz_core"]},
scala_deps = [
"@maven//:org_scalaz_scalaz_core",
],
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
],
Expand All @@ -60,7 +62,9 @@ da_scala_binary(
":Examples.dar.pp",
],
main_class = "com.daml.lf.speedy.explore.SpeedTestNfib",
versioned_scala_deps = {"2.13": ["@maven//:org_scalaz_scalaz_core"]},
scala_deps = [
"@maven//:org_scalaz_scalaz_core",
],
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
],
Expand Down Expand Up @@ -89,7 +93,9 @@ da_scala_binary(
":JsonParser.dar.pp",
],
main_class = "com.daml.lf.speedy.explore.SpeedTestJsonParser",
versioned_scala_deps = {"2.13": ["@maven//:org_scalaz_scalaz_core"]},
scala_deps = [
"@maven//:org_scalaz_scalaz_core",
],
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
],
Expand Down
3 changes: 0 additions & 3 deletions daml-lf/language/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ da_scala_test(
scalacopts = lf_scalacopts + [
"-P:silencer:lineContentFilters=signum",
],
versioned_scala_deps = {
"2.12": ["@maven//:org_scalaz_scalaz_core"],
},
deps = [
":language",
"//daml-lf/data",
Expand Down
5 changes: 0 additions & 5 deletions daml-lf/repl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ da_scala_binary(
"@maven//:org_scalaz_scalaz_core",
],
tags = ["maven_coordinates=com.daml:daml-lf-repl:__VERSION__"],
versioned_scala_deps = {
"2.12": [
"@maven//:org_scala_lang_modules_scala_collection_compat",
],
},
visibility = ["//visibility:public"],
deps = [
"//daml-lf/archive:daml_lf_archive_reader",
Expand Down
1 change: 0 additions & 1 deletion daml-lf/scenario-interpreter/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ da_scala_library(
scala_deps = ["@maven//:org_typelevel_paiges_core"],
scalacopts = lf_scalacopts_stricter,
tags = ["maven_coordinates=com.daml:daml-lf-scenario-interpreter:__VERSION__"],
versioned_scala_deps = {"2.12": ["@maven//:org_scalaz_scalaz_core"]},
visibility = [
"//visibility:public",
],
Expand Down
5 changes: 0 additions & 5 deletions daml-lf/transaction/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@ da_scala_test(
silencer_plugin,
],
scalacopts = lf_scalacopts,
versioned_scala_deps = {
"2.12": [
"@maven//:org_scalaz_scalaz_core",
],
},
deps = [
":transaction",
"//daml-lf/data",
Expand Down
5 changes: 0 additions & 5 deletions daml-lf/validation/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ da_scala_test(
scalacopts = lf_scalacopts + [
"-P:silencer:lineContentFilters=standardInterpolator",
],
versioned_scala_deps = {
"2.12": [
"@maven//:org_scalaz_scalaz_core",
],
},
deps = [
":validation",
"//daml-lf/data",
Expand Down
3 changes: 0 additions & 3 deletions daml-script/converter/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ da_scala_library(
],
scalacopts = script_scalacopts,
tags = ["maven_coordinates=com.daml:script-converter:__VERSION__"],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
visibility = ["//visibility:public"],
deps = [
"//daml-lf/data",
Expand Down
6 changes: 0 additions & 6 deletions daml-script/export/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ da_scala_binary(
"@maven//:io_circe_circe_core",
"@maven//:io_circe_circe_yaml",
],
versioned_scala_deps = {
"2.12": [
"@maven//:org_typelevel_cats_core",
"@maven//:org_typelevel_cats_kernel",
],
},
visibility = ["//visibility:public"],
deps = [
"//daml-lf/archive:daml_lf_archive_reader",
Expand Down
9 changes: 0 additions & 9 deletions language-support/java/bindings-rxjava/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ da_scala_library(
"@maven//:org_scalatest_scalatest_matchers_core",
"@maven//:org_scalatest_scalatest_shouldmatchers",
],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
deps = [
":bindings-rxjava",
"//daml-lf/data",
Expand Down Expand Up @@ -115,9 +112,6 @@ da_scala_test_suite(
"@maven//:org_scalatest_scalatest_wordspec",
"@maven//:org_scalatestplus_scalacheck_1_15",
],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
deps = [
":bindings-integration-tests-model-latest.jar",
":bindings-java-tests-lib",
Expand Down Expand Up @@ -156,9 +150,6 @@ da_scala_test(
"@maven//:org_scalatest_scalatest_matchers_core",
"@maven//:org_scalatest_scalatest_shouldmatchers",
],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
deps = [
":bindings-java-tests-lib",
":bindings-rxjava",
Expand Down
3 changes: 0 additions & 3 deletions language-support/java/bindings/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ da_scala_library(
scala_deps = [
"@maven//:org_scalacheck_scalacheck",
],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
visibility = [
"//ledger-service/http-json:__subpackages__",
],
Expand Down
8 changes: 0 additions & 8 deletions language-support/java/codegen/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ da_scala_test(
"@maven//:org_scalatest_scalatest_shouldmatchers",
"@maven//:org_scalaz_scalaz_core",
],
versioned_scala_deps = {
"2.12": [
"@maven//:org_scala_lang_modules_scala_collection_compat",
],
},
deps = [
":lib",
"//bazel_tools/runfiles:scala_runfiles",
Expand Down Expand Up @@ -345,9 +340,6 @@ da_scala_test(
"@maven//:org_scalaz_scalaz_core",
],
tags = ["exclusive"],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
deps = [
":ledger-tests-model.jar",
"//bazel_tools/runfiles:scala_runfiles",
Expand Down
5 changes: 0 additions & 5 deletions ledger-service/jwt/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ da_scala_library(
],
scalacopts = lf_scalacopts,
tags = ["maven_coordinates=com.daml:jwt:__VERSION__"],
versioned_scala_deps = {
"2.12": [
"@maven//:org_scala_lang_modules_scala_collection_compat",
],
},
visibility = ["//visibility:public"],
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
Expand Down
6 changes: 0 additions & 6 deletions ledger/error/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ da_scala_library(
"@maven//:io_spray_spray_json",
],
tags = ["maven_coordinates=com.daml:error:__VERSION__"],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
visibility = ["//visibility:public"],
deps = [
"//daml-lf/archive:daml_lf_archive_reader",
Expand Down Expand Up @@ -65,9 +62,6 @@ da_scala_test_suite(
"@maven//:org_scalatest_scalatest_matchers_core",
"@maven//:org_scalatest_scalatest_shouldmatchers",
],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
deps = [
":error",
":error-test-utils",
Expand Down
3 changes: 0 additions & 3 deletions ledger/error/generator/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ da_scala_library(
name = "lib",
srcs = glob(["lib/src/main/scala/**/*.scala"]),
tags = ["maven_coordinates=com.daml:error-generator-lib:__VERSION__"],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
visibility = ["//visibility:public"],
deps = [
"//ledger/error",
Expand Down
4 changes: 1 addition & 3 deletions ledger/ledger-api-common/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,11 @@ da_scala_test_suite(
"@maven//:org_scalatest_scalatest_wordspec",
"@maven//:org_scalaz_scalaz_core",
"@maven//:org_scala_lang_modules_scala_collection_compat",
"@maven//:org_scala_lang_modules_scala_parallel_collections",
],
scalacopts = [
"-P:silencer:lineContentFilters=import scala.collection.parallel.CollectionConverters._",
],
versioned_scala_deps = {
"2.13": ["@maven//:org_scala_lang_modules_scala_parallel_collections"],
},
deps = [
":ledger-api-common",
":ledger-api-common-scala-tests-lib",
Expand Down
9 changes: 0 additions & 9 deletions ledger/metrics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ da_scala_library(
"@maven//:com_github_scopt_scopt",
],
tags = ["maven_coordinates=com.daml:metrics:__VERSION__"],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
visibility = [
"//visibility:public",
],
Expand Down Expand Up @@ -53,9 +50,6 @@ da_scala_library(
"@maven//:org_scalatest_scalatest_core",
],
tags = ["maven_coordinates=com.daml:metrics-test-lib:__VERSION__"],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
visibility = [
"//visibility:public",
],
Expand Down Expand Up @@ -83,9 +77,6 @@ da_scala_test_suite(
"@maven//:org_scalatest_scalatest_shouldmatchers",
"@maven//:org_scalatest_scalatest_wordspec",
],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
deps = [
":metrics",
":metrics-test-lib",
Expand Down
6 changes: 0 additions & 6 deletions ledger/participant-integration-api/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,6 @@ da_scala_binary(
"@maven//:io_circe_circe_yaml",
"@maven//:io_circe_circe_core",
],
versioned_scala_deps = {
"2.12": [
"@maven//:org_typelevel_cats_core",
"@maven//:org_typelevel_cats_kernel",
],
},
visibility = ["//visibility:public"],
deps = [
":participant-integration-api",
Expand Down
3 changes: 0 additions & 3 deletions libs-scala/build-info/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ da_scala_library(
"//:mvn_version_file",
],
tags = ["maven_coordinates=com.daml:build-info:__VERSION__"],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
visibility = [
"//:__subpackages__",
],
Expand Down
3 changes: 0 additions & 3 deletions libs-scala/contextualized-logging/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ da_scala_library(
],
scalacopts = ["-Xsource:2.13"],
tags = ["maven_coordinates=com.daml:contextualized-logging:__VERSION__"],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
visibility = [
"//visibility:public",
],
Expand Down
3 changes: 0 additions & 3 deletions libs-scala/flyway-testing/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ da_scala_library(
"@maven//:org_scalatest_scalatest_wordspec",
],
tags = ["maven_coordinates=com.daml:flyway-testing:__VERSION__"],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},
visibility = ["//visibility:public"],
deps = [
"@maven//:org_flywaydb_flyway_core",
Expand Down
Loading

0 comments on commit fa76631

Please sign in to comment.