forked from ShellRechargeSolutionsEU/akka-rabbitmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
34 lines (25 loc) · 948 Bytes
/
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
organization := "com.thenewmotion.akka"
name := "akka-rabbitmq"
enablePlugins(OssLibPlugin)
licenses := Seq(("Apache License, Version 2.0", url("http://www.apache.org/licenses/LICENSE-2.0")))
homepage := Some(new URL("https://github.com/thenewmotion/akka-rabbitmq"))
def akka(scalaVersion: String) = {
val version = scalaVersion match {
case x if x.startsWith("2.10") => "2.3.14"
case x => "2.4.1"
}
def libs(xs: String*) = xs.map(x => "com.typesafe.akka" %% s"akka-$x" % version)
libs("actor") ++ libs("testkit").map(_ % "test")
}
libraryDependencies ++= {
Seq(
"com.rabbitmq" % "amqp-client" % "3.4.2",
"com.typesafe" % "config" % "1.0.2" % "test",
"org.specs2" %% "specs2-mock" % "2.4.17" % "test"
)
}
libraryDependencies <++= scalaVersion { v: String => akka(v) }
unmanagedSourceDirectories in Compile <+= (sourceDirectory in Compile, scalaBinaryVersion){
(s, v) => s / ("scala_"+v)
}
Format.settings