-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
44 lines (36 loc) · 1.06 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
35
36
37
38
39
40
41
42
43
44
organization in ThisBuild := "com.thoughtworks.q"
name := "q"
scalacOptions ++= {
import Ordering.Implicits._
if (VersionNumber(scalaVersion.value).numbers >= Seq(2L, 13L)) {
Seq("-Ymacro-annotations")
} else {
Nil
}
}
libraryDependencies ++= {
import Ordering.Implicits._
if (VersionNumber(scalaVersion.value).numbers >= Seq(2L, 13L)) {
Nil
} else {
Seq(compilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full))
}
}
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value % Test
libraryDependencies += {
import Ordering.Implicits._
if (VersionNumber(scalaVersion.value).numbers < Seq(2L, 12L)) {
"com.lihaoyi" %% "utest" % "0.6.8" % Test
} else {
"com.lihaoyi" %% "utest" % "0.6.9" % Test
}
}
testFrameworks += new TestFramework("utest.runner.Framework")
libraryDependencies ++= {
if (scalaBinaryVersion.value == "2.10") {
Seq("org.scalamacros" %% "quasiquotes" % "2.1.0")
} else {
Seq()
}
}