-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
90 lines (72 loc) · 2.41 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name := "spray-swagger-sample"
organization := "com.hamrah"
version := "0.1.0-SNAPSHOT"
homepage := Some(url("https://github.com/mhamrah/spray-swagger-sample"))
startYear := Some(2014)
scmInfo := Some(
ScmInfo(
url("https://github.com/mhamrah/spray-swagger-sample"),
"scm:git:https://github.com/mhamrah/spray-swagger-sample.git",
Some("scm:git:[email protected]:mhamrah/spray-swagger-sample.git")
)
)
/* scala versions and options */
scalaVersion := "2.11.2"
// These options will be used for *all* versions.
scalacOptions ++= Seq(
"-deprecation"
,"-unchecked"
,"-encoding", "UTF-8"
,"-Xlint"
// "-optimise" // this option will slow your build
)
scalacOptions ++= Seq(
"-Yclosure-elim",
"-Yinline"
)
// These language flags will be used only for 2.10.x.
// Uncomment those you need, or if you hate SIP-18, all of them.
scalacOptions <++= scalaVersion map { sv =>
if (sv startsWith "2.11") List(
"-Xverify"
,"-feature"
,"-language:postfixOps"
// "-language:reflectiveCalls",
// "-language:implicitConversions"
// "-language:higherKinds",
// "-language:existentials",
// "-language:experimental.macros",
// "-language:experimental.dynamics"
)
else Nil
}
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation")
val akka = "2.3.6"
val spray = "1.3.2"
/* dependencies */
libraryDependencies ++= Seq (
"com.github.nscala-time" %% "nscala-time" % "1.2.0",
"org.scalatest" % "scalatest_2.11" % "2.2.0" % "test",
"ch.qos.logback" % "logback-classic" % "1.1.2",
"com.typesafe.scala-logging" %% "scala-logging-slf4j" % "2.1.2",
"com.typesafe.akka" %% "akka-testkit" % akka % "test",
"com.typesafe.akka" %% "akka-actor" % akka,
"com.typesafe.akka" %% "akka-slf4j" % akka,
"io.spray" %% "spray-routing" % spray,
"io.spray" %% "spray-client" % spray,
"io.spray" %% "spray-testkit" % spray % "test",
"com.gettyimages" %% "spray-swagger" % "0.5.0"// excludeAll( ExclusionRule(organization = "org.json4s") )
,"org.json4s" %% "json4s-jackson" % "3.2.10"
,"com.typesafe" % "config" % "1.2.1"
,"com.netaporter.salad" %% "salad-metrics-core" % "0.2.8"
)
/* you may need these repos */
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots")
,Resolver.sonatypeRepo("releases")
,Resolver.typesafeRepo("releases")
,"spray repo" at "http://repo.spray.io"
)
packageArchetype.java_server
seq(Revolver.settings: _*)
net.virtualvoid.sbt.graph.Plugin.graphSettings