-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
96 lines (78 loc) · 2.39 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
89
90
91
92
93
94
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"
// -- testing --
, "org.scalatest" % "scalatest_2.11" % "2.2.0" % "test"
// -- Logging --
,"ch.qos.logback" % "logback-classic" % "1.1.2"
// -- Akka --
,"com.typesafe.akka" %% "akka-testkit" % akka % "test"
,"com.typesafe.akka" %% "akka-actor" % akka
,"com.typesafe.akka" %% "akka-slf4j" % akka
// -- Sql --
//,"com.typesafe.slick" %% "slick" % "2.0.2"
// -- Spray --
,"io.spray" %% "spray-routing" % spray
,"io.spray" %% "spray-client" % spray
,"io.spray" %% "spray-testkit" % spray % "test"
,"com.gettyimages" %% "spray-swagger" % "0.5.1"
// -- json --
,"org.json4s" %% "json4s-jackson" % "3.2.10"
// -- config --
,"com.typesafe" % "config" % "1.2.1"
)
/* 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