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)