-
Notifications
You must be signed in to change notification settings - Fork 2
/
dependencies.sbt
41 lines (35 loc) · 1.74 KB
/
dependencies.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
resolvers += Resolver.sonatypeRepo("releases")
updateOptions := updateOptions.value.withCachedResolution(cachedResoluton = true)
val log4jVersion = "[2.0.1,2.9.99]"
val slf4jVersion = "[1.7.0,1.9.99]"
val jacksonVersion = "[2.6.2,2.7.99]"
val slf4j = Seq(
"org.slf4j" % "slf4j-api" % slf4jVersion % "provided",
"org.slf4j" % "slf4j-ext" % slf4jVersion % "provided"
)
val log4j = Seq(
"org.apache.logging.log4j" % "log4j-api" % log4jVersion % "test",
"org.apache.logging.log4j" % "log4j-core" % log4jVersion % "test",
"org.apache.logging.log4j" % "log4j-slf4j-impl" % log4jVersion % "test",
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion % "test",
"com.fasterxml.jackson.dataformat" % "jackson-dataformat-yaml" % jacksonVersion % "test" exclude("org.yaml", "snakeyaml")
)
val productionDependencies = slf4j ++ Seq(
"com.chuusai" %% "shapeless" % "[2.2.5,2.3.99]" % "provided"
)
val testDependencies = log4j ++ Seq(
"com.github.rhyskeepence" %% "clairvoyance-scalatest" % "[1.0.109,1.0.999]" % "test",
"org.scalatest" %% "scalatest" % "3.0.0" % "test",
"org.scalaz" %% "scalaz-core" % "7.2.4" % "test"
)
libraryDependencies <++= scalaVersion { scala_version ⇒ Seq(
"org.scala-lang" % "scala-library" % scala_version,
"org.scala-lang" % "scala-reflect" % scala_version
) ++
(CrossVersion.partialVersion(scala_version) match {
case Some((2, scalaMajor)) if scalaMajor == 10 ⇒ Seq(compilerPlugin("org.scalamacros" % "paradise" % "2.0.1" cross CrossVersion.full))
case Some((2, scalaMajor)) if scalaMajor >= 11 ⇒ Seq("org.scala-lang.modules" %% "scala-xml" % "1.0.5" % "test")
case _ ⇒ Seq.empty
})
}
libraryDependencies ++= productionDependencies ++ testDependencies