This repository was archived by the owner on Oct 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
88 lines (73 loc) · 2.95 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
import scalariform.formatter.preferences._
organization := "com.agourlay"
name := "omnibus"
version := "0.1-SNAPSHOT"
scalaVersion := "2.11.7"
scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-target:jvm-1.7",
"-encoding", "UTF-8",
"-Ywarn-dead-code",
"-language:implicitConversions",
"-language:postfixOps",
"-Ywarn-unused-import",
"-feature"
)
fork in Test := true
scalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 100)
.setPreference(AlignParameters, true)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(PreserveDanglingCloseParenthesis, true)
.setPreference(RewriteArrowSymbols, true)
enablePlugins(JavaServerAppPackaging)
mappings in Universal += {
file("src/main/resources/application.conf") -> "conf/omnibus.conf"
}
scriptClasspath += "../conf/omnibus.conf"
resolvers ++= Seq(
"typesafe repo" at "http://repo.typesafe.com/typesafe/releases/"
,"spray" at "http://repo.spray.io"
)
val test = project.in(file("."))
.enablePlugins(GatlingPlugin)
.settings(libraryDependencies ++= {
val gatlingV = "2.1.7"
val commonIoV = "2.4"
Seq(
"io.gatling.highcharts" % "gatling-charts-highcharts" % gatlingV % "it"
,"io.gatling" % "gatling-test-framework" % gatlingV % "it"
,"commons-io" % "commons-io" % commonIoV % "it"
)
})
libraryDependencies ++= {
val akkaV = "2.3.12"
val sprayV = "1.3.3"
val sprayJsonV = "1.3.2"
val sprayWsV = "0.1.4"
val logbackV = "1.1.3"
val scalaTestV = "2.2.5"
val scalaMetricsV = "3.5.1_a2.3"
val metricsV = "3.1.2"
val levelDbV = "1.8"
Seq(
"io.spray" %% "spray-can" % sprayV
,"io.spray" %% "spray-routing-shapeless2" % sprayV
,"io.spray" %% "spray-json" % sprayJsonV
,"com.wandoulabs.akka" %% "spray-websocket" % sprayWsV
,"com.typesafe.akka" %% "akka-actor" % akkaV
,"com.typesafe.akka" %% "akka-slf4j" % akkaV
,"com.typesafe.akka" %% "akka-persistence-experimental" % akkaV
,"org.fusesource.leveldbjni" % "leveldbjni-all" % levelDbV
,"nl.grons" %% "metrics-scala" % scalaMetricsV
,"io.dropwizard.metrics" % "metrics-graphite" % metricsV
,"ch.qos.logback" % "logback-classic" % logbackV
,"io.spray" %% "spray-testkit" % sprayV % "test"
,"com.typesafe.akka" %% "akka-testkit" % akkaV % "test"
,"org.scalatest" %% "scalatest" % scalaTestV % "test"
)
}
Seq(Revolver.settings: _*)