This repository has been archived by the owner on Feb 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathbuild.sbt
72 lines (59 loc) · 1.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
69
70
71
72
name := "lojinha"
version := "1.0-SNAPSHOT"
lazy val root =
(project in file("."))
.enablePlugins(PlayScala)
scalaVersion := "2.13.3"
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-language:postfixOps",
"-language:implicitConversions",
// fixme: cannot be used for now because lots of erros pop up in routes and templates
// "-Ywarn-unused",
// "-Ywarn-unused-import",
// "-Xlint",
"-Xfatal-warnings"
)
scalafmtOnCompile := true
Global / onChangedBuildSource := ReloadOnSourceChanges
val webJars = Seq(
"org.webjars" %% "webjars-play" % "2.8.0-1",
"org.webjars" % "jquery" % "3.5.1",
"org.webjars" % "bootstrap" % "4.6.0"
)
val databaseDeps = Seq(
jdbc,
evolutions,
"org.playframework.anorm" %% "anorm" % "2.6.9",
"com.h2database" % "h2" % "1.4.200"
)
val testLibs = Seq(
"org.mockito" % "mockito-core" % "3.7.7",
specs2
).map(_ % Test)
libraryDependencies ++= Seq(
guice,
caffeine,
"com.amazonaws" % "aws-java-sdk" % "1.11.949",
"com.typesafe.play" %% "play-mailer" % "8.0.1",
"postgresql" % "postgresql" % "9.1-901-1.jdbc4" % Runtime
) ++ webJars ++ databaseDeps ++ testLibs
TwirlKeys.templateImports ++= Seq(
"models.dao._",
"models.images._"
)
// to avoid checking play generated files
wartremoverExcluded += target.value
wartremoverErrors ++= Warts.allBut(
Wart.Any,
Wart.Nothing,
Wart.ImplicitParameter,
Wart.Overloading,
Wart.Equals,
Wart.MutableDataStructures,
Wart.StringPlusAny,
Wart.DefaultArguments,
Wart.Recursion
)