-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.sbt
43 lines (32 loc) · 1.15 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
val ocppCharger = project
.in(file("."))
.settings(
name := "ocpp-charger",
organization := "com.thenewmotion.chargenetwork",
description := "OCPP Charger Simulator",
scalaVersion := "2.11.11",
crossScalaVersions := Seq("2.11.11"),
libraryDependencies ++= {
val log = {
Seq("ch.qos.logback" % "logback-classic" % "1.2.3",
"com.typesafe.scala-logging" %% "scala-logging-slf4j" % "2.1.2")
}
val ocpp = {
def libs(xs: String*) = xs.map(x => "com.thenewmotion.ocpp" %% s"ocpp-$x" % "4.3.0")
libs("spray", "json")
}
val spray = {
Seq("io.spray" %% "spray-can" % "1.3.4")
}
val akka = {
def libs(xs: String*) = xs.map(x => "com.typesafe.akka" %% s"akka-$x" % "2.3.11")
libs("actor", "slf4j") ++
libs("testkit").map(_ % "test")
}
val commons = "commons-net" % "commons-net" % "3.6"
val scallop = "org.rogach" %% "scallop" % "3.1.2"
val tests =
Seq("core", "mock", "junit").map(n => "org.specs2" %% s"specs2-$n" % "2.4.17" % "test")
log ++ akka ++ spray ++ ocpp ++ tests :+ commons :+ scallop
}
)