-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
34 lines (27 loc) · 1.24 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name := "fatdynet"
description := "FatDynet packages DyNet for direct integration into Scala/Java environments on Linux, Mac, and Windows."
val scala211 = "2.11.12" // up to 2.11.12
val scala212 = "2.12.17" // up to 2.12.18
val scala213 = "2.13.10" // up to 2.13.11
val scala30 = "3.0.2" // up to 3.0.2
val scala31 = "3.1.3" // up to 3.1.3
val scala32 = "3.2.2" // up to 3.2.2
val scala33 = "3.3.0" // up to 3.3.0
val scala3 = scala31
ThisBuild / crossScalaVersions := Seq(scala212, scala211, scala213, scala3)
ThisBuild / scalaVersion := scala212
Compile / mainClass := Some("org.clulab.fatdynet.apps.XorScalaApp")
libraryDependencies ++= {
// See https://index.scala-lang.org/scala/scala-parallel-collections/scala-parallel-collections.
val parallelLibraries = {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, major)) if major <= 12 => Seq()
case _ => Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.4") // up to 1.0.4
}
}
Seq(
"org.scala-lang.modules" %% "scala-collection-compat" % "2.11.0", // up to 2.11.0
"org.scalatest" %% "scalatest" % "3.2.16" % Test // up to 3.2.16
) ++ parallelLibraries
}
lazy val root = (project in file("."))