This repository has been archived by the owner on Sep 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 138
/
build.sbt
68 lines (54 loc) · 2.54 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import com.typesafe.sbt.SbtScalariform._
import scalariform.formatter.preferences._
name := "play-silhouette-seed"
version := "6.0.0"
scalaVersion := "2.13.1"
resolvers += Resolver.jcenterRepo
resolvers += "Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies ++= Seq(
"com.mohiva" %% "play-silhouette" % "6.1.1",
"com.mohiva" %% "play-silhouette-password-bcrypt" % "6.1.1",
"com.mohiva" %% "play-silhouette-persistence" % "6.1.1",
"com.mohiva" %% "play-silhouette-crypto-jca" % "6.1.1",
"com.mohiva" %% "play-silhouette-totp" % "6.1.1",
"org.webjars" %% "webjars-play" % "2.8.0",
"org.webjars" % "bootstrap" % "4.4.1" exclude("org.webjars", "jquery"),
"org.webjars" % "jquery" % "3.2.1",
"net.codingwell" %% "scala-guice" % "4.2.6",
"com.iheart" %% "ficus" % "1.4.7",
"com.typesafe.play" %% "play-mailer" % "7.0.1",
"com.typesafe.play" %% "play-mailer-guice" % "7.0.1",
//"com.enragedginger" %% "akka-quartz-scheduler" % "1.8.2-akka-2.6.x",
"com.enragedginger" %% "akka-quartz-scheduler" % "1.8.3-akka-2.6.x",
"com.adrianhurt" %% "play-bootstrap" % "1.5.1-P27-B4",
"com.mohiva" %% "play-silhouette-testkit" % "6.1.1" % "test",
specs2 % Test,
ehcache,
guice,
filters
)
lazy val root = (project in file(".")).enablePlugins(PlayScala)
routesImport += "utils.route.Binders._"
// https://github.com/playframework/twirl/issues/105
TwirlKeys.templateImports := Seq()
scalacOptions ++= Seq(
"-deprecation", // Emit warning and location for usages of deprecated APIs.
"-feature", // Emit warning and location for usages of features that should be imported explicitly.
"-unchecked", // Enable additional warnings where generated code depends on assumptions.
"-Xfatal-warnings", // Fail the compilation if there are any warnings.
//"-Xlint", // Enable recommended additional warnings.
"-Ywarn-dead-code", // Warn when dead code is identified.
"-Ywarn-numeric-widen", // Warn when numerics are widened.
// Play has a lot of issues with unused imports and unsued params
// https://github.com/playframework/playframework/issues/6690
// https://github.com/playframework/twirl/issues/105
"-Xlint:-unused,_"
)
//********************************************************
// Scalariform settings
//********************************************************
scalariformAutoformat := true
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(FormatXml, false)
.setPreference(DoubleIndentConstructorArguments, false)
.setPreference(DanglingCloseParenthesis, Preserve)