Created
November 12, 2014 16:29
-
-
Save davegurnell/a8462919b95b0394d604 to your computer and use it in GitHub Desktop.
Sample build.sbt to get Play to load different configs for test and dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lazy val chat = project.in(file(".")).enablePlugins(PlayScala) | |
scalaVersion in chat := "2.11.4" | |
libraryDependencies in chat ++= Seq( | |
jdbc, | |
anorm, | |
"org.postgresql" % "postgresql" % "9.3-1101-jdbc4", | |
"org.webjars" % "bootstrap" % "3.0.2", | |
"org.scalatestplus" %% "play" % "1.2.0" % "test" | |
) | |
javaOptions := Seq("-Dconfig.file=conf/application.conf") | |
javaOptions in Test := Seq("-Dconfig.file=conf/test.conf") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment