-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
44 lines (34 loc) · 1.13 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 := "ca.mrvisser"
name := "case-config"
licenses += ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0"))
scalaVersion := "2.11.4"
crossScalaVersions := Seq("2.10.4", "2.11.4")
scalacOptions ++= Seq(
"-Xlint",
"-deprecation",
"-feature",
"-unchecked",
"-language:higherKinds",
"-language:experimental.macros"
)
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-compiler" % _)
libraryDependencies ++= Seq(
Dependencies.Compile.typesafeConfig,
Dependencies.Test.scalaTest
)
libraryDependencies := {
// Only include macro paradise + quasi-quotes plugin for scala 2.10
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, scalaMajor)) if scalaMajor >= 11 => libraryDependencies.value
case Some((2, 10)) =>
libraryDependencies.value ++ Seq(
compilerPlugin(Dependencies.Compiler.macroParadise),
Dependencies.Compile.quasiQuotes
)
}
}
unmanagedSourceDirectories in Compile += (sourceDirectory in Compile).value / s"scala_${scalaBinaryVersion.value}"