-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
84 lines (77 loc) · 3.82 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
import com.typesafe.sbt.SbtScalariform._
//
// Commons
//
lazy val commonSettings = Seq(
organization := "com.mintbeans",
version := "0.1",
startYear := Some(2016),
scalaVersion := "2.11.7",
updateOptions := updateOptions.value.withCachedResolution(true),
scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation", "-encoding", "utf8"),
resolvers ++= Seq(
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
"Sonatype Releases" at "http://oss.sonatype.org/content/repositories/releases",
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
),
libraryDependencies ++= {
val configVersion = "1.3.0"
val scalaLoggingVersion = "3.1.0"
val akkaVersion = "2.4.2"
val jeromqVersion = "0.3.5"
val logbackVersion = "1.1.5"
val scalaMockVersion = "3.2.1"
Seq(
"com.typesafe" % "config" % configVersion,
"com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingVersion,
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % "test",
"com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % "test",
"org.zeromq" % "jeromq" % jeromqVersion,
"ch.qos.logback" % "logback-classic" % logbackVersion % "test",
"org.scalamock" %% "scalamock-scalatest-support" % scalaMockVersion % "test",
//Required for IntelliJ ScalaTest integration
"org.scala-lang.modules" %% "scala-xml" % "1.0.1" % "test"
)
}
)
//
// Projects
//
lazy val core = project.in(file("core"))
.settings(commonSettings: _*)
.settings(SbtScalariform.scalariformSettings: _*)
lazy val stream = project.in(file("stream"))
.settings(commonSettings: _*)
.settings(SbtScalariform.scalariformSettings: _*)
.dependsOn(core)
lazy val examples = project.in(file("examples"))
.settings(commonSettings: _*)
.settings(SbtScalariform.scalariformSettings: _*)
.settings(
libraryDependencies ++= {
val logbackVersion = "1.1.5"
Seq(
"ch.qos.logback" % "logback-classic" % logbackVersion
)
}
)
.dependsOn(stream)
lazy val benchmarks = project
.in(file("benchmarks"))
.enablePlugins(GatlingPlugin)
.settings(commonSettings: _*)
.settings(SbtScalariform.scalariformSettings: _*)
.settings(
libraryDependencies ++= {
val gatlingVersion = "2.2.0-M3"
Seq(
"io.gatling.highcharts" % "gatling-charts-highcharts" % gatlingVersion,
"io.gatling" % "gatling-test-framework" % gatlingVersion
)
},
javaOptions in Gatling := overrideDefaultJavaOptions("-Xms256m", "-Xmx256m")
)
.dependsOn(stream)
lazy val root = project.in(file(".")).aggregate(core, stream, examples, benchmarks)