forked from playframework/play-java-rest-api-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
45 lines (34 loc) · 1.53 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
name := """play-java-rest-api-example"""
version := "2.6.x"
def gatlingVersion(scalaBinVer: String): String = scalaBinVer match {
case "2.11" => "2.2.5"
case "2.12" => "2.3.1"
}
inThisBuild(
List(
scalaVersion := "2.12.6",
crossScalaVersions := Seq("2.11.12", "2.12.6"),
dependencyOverrides := Seq(
"org.codehaus.plexus" % "plexus-utils" % "3.0.18",
"com.google.code.findbugs" % "jsr305" % "3.0.1",
"com.google.guava" % "guava" % "22.0"
)
)
)
lazy val GatlingTest = config("gatling") extend Test
lazy val root = (project in file(".")).enablePlugins(PlayJava, GatlingPlugin).configs(GatlingTest)
.settings(inConfig(GatlingTest)(Defaults.testSettings): _*)
.settings(
scalaSource in GatlingTest := baseDirectory.value / "/gatling/simulation"
)
libraryDependencies += guice
libraryDependencies += javaJpa
libraryDependencies += "com.h2database" % "h2" % "1.4.197"
libraryDependencies += "org.hibernate" % "hibernate-core" % "5.2.17.Final"
libraryDependencies += "io.dropwizard.metrics" % "metrics-core" % "3.2.1"
libraryDependencies += "com.palominolabs.http" % "url-builder" % "1.1.0"
libraryDependencies += "net.jodah" % "failsafe" % "1.0.3"
libraryDependencies += "io.gatling.highcharts" % "gatling-charts-highcharts" % gatlingVersion(scalaBinaryVersion.value) % Test
libraryDependencies += "io.gatling" % "gatling-test-framework" % gatlingVersion(scalaBinaryVersion.value) % Test
PlayKeys.externalizeResources := false
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-a", "-v"))