-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
45 lines (32 loc) · 1.59 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
import sbt.Keys._
name := "bobchain-scala"
version := "0.1"
scalaVersion := "2.12.4"
crossScalaVersions := Seq("2.11.12", "2.12.4")
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
/* Hashing library from: https://github.com/Nycto/Hasher */
libraryDependencies ++= Seq("com.roundeights" %% "hasher" % "1.2.0")
/* Json conversions via gson */
libraryDependencies += "com.google.code.gson" % "gson" % "2.8.2"
def gatlingVersion(scalaBinVer: String): String = scalaBinVer match {
case "2.11" => "2.2.5"
case "2.12" => "2.3.0"
}
libraryDependencies += guice
libraryDependencies += "org.joda" % "joda-convert" % "1.9.2"
libraryDependencies += "net.logstash.logback" % "logstash-logback-encoder" % "4.11"
libraryDependencies += "com.netaporter" %% "scala-uri" % "0.4.16"
libraryDependencies += "net.codingwell" %% "scala-guice" % "4.1.1"
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "3.1.2" % Test
libraryDependencies += "io.gatling.highcharts" % "gatling-charts-highcharts" % gatlingVersion(scalaBinaryVersion.value) % Test
libraryDependencies += "io.gatling" % "gatling-test-framework" % gatlingVersion(scalaBinaryVersion.value) % Test
// The Play project itself
lazy val root = (project in file("."))
.enablePlugins(Common, PlayScala, GatlingPlugin)
// 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")
)