From 48fb9e3d2cd249af2101485118393c84668f01c5 Mon Sep 17 00:00:00 2001 From: Juan Pablo Romero Date: Sat, 28 May 2022 20:35:01 -0700 Subject: [PATCH] Don't depend on scala-collection-compat when using Scala >= 2.13 --- build.sbt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 06c56b72ab..4b797dab12 100644 --- a/build.sbt +++ b/build.sbt @@ -106,8 +106,13 @@ lazy val zhttp = (project in file("zio-http")) `zio-test`, `zio-test-sbt`, `netty-incubator`, - `scala-compact-collection`, ), + libraryDependencies ++= { + CrossVersion.partialVersion(scalaVersion.value) match { + case Some((2, n)) if n <= 12 => Seq(`scala-compact-collection`) + case _ => Seq.empty + } + }, ) .dependsOn(zhttpLogging)