-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
40 lines (31 loc) · 1.57 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
import sbt.Keys._
PlayKeys.devSettings := Seq("play.server.http.port" -> "8080")
routesGenerator := InjectedRoutesGenerator
lazy val GatlingTest = config("gatling") extend Test
// This must be set to 2.11.11 because Gatling does not run on 2.12.2
scalaVersion in ThisBuild := "2.11.11"
libraryDependencies += guice
libraryDependencies += "org.joda" % "joda-convert" % "1.8"
libraryDependencies += "net.logstash.logback" % "logstash-logback-encoder" % "4.9"
libraryDependencies += "com.netaporter" %% "scala-uri" % "0.4.16"
libraryDependencies += "net.codingwell" %% "scala-guice" % "4.1.0"
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "3.0.0-M3" % Test
libraryDependencies += "io.gatling.highcharts" % "gatling-charts-highcharts" % "2.2.2" % Test
libraryDependencies += "io.gatling" % "gatling-test-framework" % "2.2.2" % Test
libraryDependencies += "org.reactivemongo" % "play2-reactivemongo_2.11" % "0.12.7-play26"
// The Play project itself
lazy val root = (project in file("."))
.enablePlugins(Common, PlayScala, GatlingPlugin)
.configs(GatlingTest)
.settings(inConfig(GatlingTest)(Defaults.testSettings): _*)
.settings(
name := """play-scala-resfult-api""",
scalaSource in GatlingTest := baseDirectory.value / "/gatling/simulation"
)
// Documentation for this project:
// sbt "project docs" "~ paradox"
// open docs/target/paradox/site/index.html
lazy val docs = (project in file("docs")).enablePlugins(ParadoxPlugin).
settings(
paradoxProperties += ("download_url" -> "https://example.lightbend.com/v1/download/play-rest-api")
)