-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sbt
More file actions
70 lines (57 loc) · 2.82 KB
/
build.sbt
File metadata and controls
70 lines (57 loc) · 2.82 KB
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
//import scalariform.formatter.preferences._
import io.gatling.sbt.GatlingPlugin
name := "periphas"
organization := "com.github.scala-academy"
version := "1.0.1-SNAPSHOT"
scalaVersion := "2.11.7"
scalacOptions := Seq("-unchecked", "-feature", "-deprecation", "-encoding", "utf8")
enablePlugins(GatlingPlugin)
libraryDependencies ++= {
val akkaV = "2.4.3"
val scalaTestV = "3.0.0-RC1"
val finagleV = "6.31.0"
val gatlingV = "2.2.0"
val scalajV = "2.3.0"
Seq(
"com.typesafe.akka" %% "akka-stream" % akkaV,
"com.typesafe.akka" %% "akka-http-core" % akkaV,
"com.typesafe.akka" %% "akka-http-experimental" % akkaV,
"com.typesafe.akka" %% "akka-http-spray-json-experimental" % akkaV,
"com.typesafe.akka" %% "akka-actor" % akkaV,
"org.scalaj" %% "scalaj-http" % scalajV,
"com.typesafe.akka" %% "akka-testkit" % akkaV % "it,test",
"com.typesafe.akka" %% "akka-http-testkit" % akkaV % "it,test",
"org.scalatest" %% "scalatest" % scalaTestV % "it,test",
"com.twitter" %% "finagle-http" % finagleV % "it",
"io.gatling.highcharts" % "gatling-charts-highcharts" % gatlingV % "it,test,gatling",
"io.gatling" % "gatling-test-framework" % gatlingV % "it,test,gatling"
)
}
def isPerfTest(name: String): Boolean = name endsWith "Simulation"
lazy val root = project.in(file("."))
.configs(Gatling)
.configs(IntegrationTest)
.settings(GatlingPlugin.gatlingSettings: _*)
.settings(scalaSource in Gatling := new File(sourceDirectory.value, "perf/scala"))
.settings(resourceDirectory in Gatling := new File(sourceDirectory.value, "perf/resources"))
.settings(testOptions in Gatling := Seq(Tests.Filter(isPerfTest(_))))
.settings(fullClasspath in Gatling += new File(crossTarget.value, "gatling-classes"))
Defaults.itSettings
//scalariformSettings
Revolver.settings
//enablePlugins(JavaAppPackaging)
//ScalariformKeys.preferences := ScalariformKeys.preferences.value
// .setPreference(AlignSingleLineCaseStatements, true)
// .setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 100)
// .setPreference(DoubleIndentClassDeclaration, true)
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
//publishTo := {
// val nexus = "https://oss.sonatype.org/"
// if (isSnapshot.value)
// Some("snapshots" at nexus + "content/repositories/snapshots")
// else
// Some("releases" at nexus + "service/local/staging/deploy/maven2")
//}
fork in run := true