From c19228686e9d95cbc594fb0e88d77dd4412b29fc Mon Sep 17 00:00:00 2001 From: juan pablo romero Date: Sun, 29 May 2022 20:50:00 -0700 Subject: [PATCH] Don't depend on scala-collection-compat when using Scala >= 2.13 (#1276) --- build.sbt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 06c56b72a..4b797dab1 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)