diff options
| author | Kevin Laeufer | 2020-07-28 09:31:55 -0700 |
|---|---|---|
| committer | Kevin Laeufer | 2020-07-29 15:26:30 -0700 |
| commit | ff509e6a917269f995e28f228a23a7fb6e947363 (patch) | |
| tree | 389d080c53e30cb49b407508c2ab860935a32354 /build.sbt | |
| parent | 6b71172e94e9fc786d33a34b75395c4f08817b6a (diff) | |
[2.13] explicitly use a parallel vector
Diffstat (limited to 'build.sbt')
| -rw-r--r-- | build.sbt | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -52,6 +52,13 @@ lazy val commonSettings = Seq( "org.json4s" %% "json4s-native" % "3.6.8", "org.apache.commons" % "commons-text" % "1.8" ), + // starting with scala 2.13 the parallel collections are separate from the standard library + libraryDependencies ++= { + CrossVersion.partialVersion(scalaVersion.value) match { + case Some((2, major)) if major <= 12 => Seq() + case _ => Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "0.2.0") + } + }, resolvers ++= Seq( Resolver.sonatypeRepo("snapshots"), Resolver.sonatypeRepo("releases") |
