-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
30 lines (20 loc) · 998 Bytes
/
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
name := "stock-trader"
version := "1.0"
scalaVersion := "2.11.8"
flywayDriver := "org.postgresql.Driver"
flywayUrl := s"jdbc:postgresql://${sys.env.getOrElse("DATABASE_URL", "null")}:${sys.env.getOrElse("DATABASE_PORT", 5432)}/${sys.env.getOrElse("DATABASE_NAME", "null")}"
flywayUser := s"${sys.env.getOrElse("DATABASE_USER", "null")}"
flywayPassword := s"${sys.env.getOrElse("DATABASE_PASSWORD", "null")}"
updateOptions := updateOptions.value.withCachedResolution(true)
libraryDependencies ++= Seq(
"com.github.tototoshi" %% "scala-csv" % "1.3.3",
"io.getquill" %% "quill-jdbc" % "1.0.0",
"org.postgresql" % "postgresql" % "9.4.1208",
"com.typesafe.play" %% "play-ws" % "2.4.3",
"org.scala-lang.modules" %% "scala-async" % "0.9.5",
"com.typesafe.scala-logging" %% "scala-logging" % "3.5.0",
"com.twitter" % "util-eval_2.11" % "6.38.0",
"com.typesafe" % "config" % "1.3.1"
)
enablePlugins(JavaAppPackaging)
compile := ((compile in Compile) dependsOn flywayMigrate).value