-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
36 lines (23 loc) · 898 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
31
32
33
34
35
name := """playframework-2.4.x-scala"""
version := "1.0-SNAPSHOT"
//@see 3.3.Custom format @+2
//lazy val root = (project in file(".")).enablePlugins(PlayScala)
lazy val root = (project in file(".")).enablePlugins(PlayScala,SbtTwirl)
scalaVersion := "2.11.6"
libraryDependencies ++= Seq(
jdbc,
cache,
ws, //10.1.The Play WS API
specs2 % Test
)
resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
// Play provides two styles of routers, one expects its actions to be injected, the
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator
// fork in run := true
// @see 3.3.Custom format @+5
import play.twirl.sbt.Import._
TwirlKeys.templateFormats += ("shi" -> "controllers.c3.A9.ShiFormat")
TwirlKeys.templateImports += "controllers.c3.A9._"
// @see 4.2.Protecting against CSRF @+1
libraryDependencies += filters