-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
70 lines (54 loc) · 2.41 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
import com.typesafe.sbt.packager.docker._
import scalariform.formatter.preferences._
name := "razorsentinel"
organization := "kipsigman"
scalaVersion := "2.11.7"
resolvers += Resolver.bintrayRepo("kipsigman", "maven")
libraryDependencies ++= Seq(
cache,
filters,
ws,
"mysql" % "mysql-connector-java" % "5.1.36",
"kipsigman" %% "scala-domain-model" % "0.2.4",
"kipsigman" %% "play-extensions" % "0.2.5",
"kipsigman" %% "play-auth" % "0.2.2",
"com.typesafe.play" %% "play-slick-evolutions" % "1.1.1",
"org.webjars" % "bootstrap" % "3.3.6",
"com.adrianhurt" %% "play-bootstrap3" % "0.4.5-P24",
"org.scalatest" %% "scalatest" % "2.2.5" % "test",
"org.scalatestplus" %% "play" % "1.4.0" % "test",
"org.mockito" % "mockito-core" % "1.10.19" % Test
)
// S3
resolvers += "Kaliber Internal Repository" at "https://jars.kaliber.io/artifactory/libs-release-local"
libraryDependencies += "net.kaliber" %% "play-s3" % "7.0.2"
lazy val root = (project in file(".")).enablePlugins(PlayScala,ElasticBeanstalkPlugin)
// Play settings
routesGenerator := InjectedRoutesGenerator
routesImport += "kipsigman.play.mvc.Binders.statusQueryStringBinder"
routesImport += "models.NewsCategoryOptions.queryStringBinder"
routesImport += "models.NewsCategoryOptions.pathBinder"
// Compiler settings
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-adapted-args", // Warn if an argument list is modified to match the receiver.
"-Ywarn-dead-code", // Warn when dead code is identified.
"-Ywarn-inaccessible", // Warn about inaccessible types in method signatures.
"-Ywarn-nullary-override", // Warn when non-nullary overrides nullary, e.g. def foo() over def foo.
"-Ywarn-numeric-widen" // Warn when numerics are widened.
)
// Scalariform
defaultScalariformSettings
// Sbt Web
pipelineStages := Seq(digest, gzip)
// Skip Scaladoc
sources in (Compile,doc) := Seq.empty
publishArtifact in (Compile, packageDoc) := false
// Docker/Elastic Beanstalk
maintainer in Docker := "Kip Sigman <kip.sigman@gmail.com>"
dockerExposedPorts := Seq(9000)
dockerBaseImage := "java:latest"