-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sbt
48 lines (42 loc) · 1.72 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
45
46
47
48
import Dependencies._
lazy val akkaHttpVersion = "10.0.11"
lazy val akkaVersion = "2.5.10"
lazy val commonSettings = Seq(
organization := "com.africastalking",
organizationName := "Africas Talking Ltd",
name := "africastalking-scala",
scalaVersion := "2.12.4",
version := "0.1.0-SNAPSHOT",
startYear := Some(2018),
crossScalaVersions := Seq("2.11.12", "2.12.4")
)
lazy val sharedDependencies = Seq(
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.typesafe.scala-logging" %% "scala-logging" % "3.8.0"
)
lazy val root = (project in file(".")).
settings(inThisBuild(commonSettings))
.aggregate(libs, examples)
lazy val libs = project
.settings(
inThisBuild(commonSettings),
libraryDependencies ++= sharedDependencies,
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-xml" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % Test,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test,
"com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % Test,
scalaTest % Test,
scalaMock % Test
)
)
lazy val examples = project
.settings(
inThisBuild(commonSettings),
libraryDependencies ++= sharedDependencies
)
.dependsOn(libs)