1-
2-
3- JsEngineKeys .engineType := JsEngineKeys .EngineType .Node
4-
51name := " playframework"
62version := " 1.0-SNAPSHOT"
73
8- lazy val root = (project in file(" ." )).enablePlugins(PlayScala , NewRelic )
4+ enablePlugins(PlayScala , NewRelic )
5+
6+ scalacOptions ++= List (" -encoding" , " utf8" , " -deprecation" , " -feature" , " -unchecked" )
97
108libraryDependencies ++= Seq (
11- " com.typesafe.play" %% " play-doc" % " 1.8.2" ,
12- " org.eclipse.jgit" % " org.eclipse.jgit" % " 3.0.0.201306101825-r" ,
13- " mysql" % " mysql-connector-java" % " 5.1.47" ,
14- " com.damnhandy" % " handy-uri-templates" % " 2.1.7" ,
15- " org.webjars" % " jquery" % " 1.8.3" ,
16- " org.webjars" % " html5shiv" % " 3.7.3" ,
17- " org.webjars" % " prettify" % " 4-Mar-2013-1" ,
18- " org.webjars" % " clipboard.js" % " 1.5.5" ,
19- " org.playframework.anorm" %% " anorm" % " 2.6.2" ,
9+ " com.typesafe.play" %% " play-doc" % " 1.8.2" ,
10+ " org.eclipse.jgit" % " org.eclipse.jgit" % " 3.0.0.201306101825-r" ,
11+ " mysql" % " mysql-connector-java" % " 5.1.47" ,
12+ " com.damnhandy" % " handy-uri-templates" % " 2.1.7" ,
13+ " org.webjars" % " jquery" % " 1.8.3" ,
14+ " org.webjars" % " html5shiv" % " 3.7.3" ,
15+ " org.webjars" % " prettify" % " 4-Mar-2013-1" ,
16+ " org.webjars" % " clipboard.js" % " 1.5.5" ,
17+ " org.playframework.anorm" %% " anorm" % " 2.6.2" ,
2018 guice,
2119 jdbc,
2220 ehcache,
2321 evolutions,
2422 filters,
2523 ws,
26- specs2 % " test"
27- )
28-
29- scalaVersion := " 2.12.8"
30-
31- scalacOptions ++= Seq (
32- " -feature" ,
33- " -deprecation"
24+ specs2 % Test
3425)
3526
3627routesGenerator := InjectedRoutesGenerator
3728
29+ JsEngineKeys .engineType := JsEngineKeys .EngineType .Node
30+
3831StylusKeys .useNib in Assets := true
3932StylusKeys .compress in Assets := true
4033
4134pipelineStages := Seq (digest, gzip)
4235
4336sourceGenerators in Compile += Def .task {
37+ import scala .sys .process ._
4438 val siteVersionFile = crossTarget.value / " version" / " SiteVersion.scala"
4539 val gitHash = " git rev-parse HEAD" .!! .trim
4640 if (! siteVersionFile.exists || ! IO .read(siteVersionFile).contains(gitHash)) {
@@ -59,6 +53,5 @@ managedSourceDirectories in Compile += crossTarget.value / "version"
5953sources in (Compile , doc) := Seq .empty
6054publishArtifact in (Compile , packageDoc) := false
6155
62- // NewRelic settings
6356newrelicVersion := " 4.9.0"
6457newrelicAppName := " playframework.com"
0 commit comments