forked from CUNY-Computer-Vision-Lab/rd-a11y-sidewalk-app
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
89 lines (68 loc) · 3.19 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import play.PlayScala
import scalariform.formatter.preferences._
name := """sidewalk-webpage"""
version := "6.8.5"
scalaVersion := "2.10.5"
sources in (Compile,doc) := Seq.empty
publishArtifact in (Compile, packageDoc) := false
// uncomment this when the sbt version is updated to > 0.13.7
// updateOptions := updateOptions.value.withCachedResolution(true)
resolvers := ("Atlassian Releases" at "https://maven.atlassian.com/public/") +: resolvers.value
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Seq(
"geosolutions" at "http://maven.geo-solutions.it/"
)
libraryDependencies ++= Seq(
jdbc,
anorm,
cache,
filters,
"com.vividsolutions" % "jts" % "1.13",
"com.typesafe.slick" %% "slick" % "2.1.0",
"com.typesafe.play" %% "play-slick" % "0.8.0",
"com.typesafe.play" %% "play-mailer" % "2.4.1",
"org.postgresql" % "postgresql" % "9.3-1102-jdbc4",
"com.mohiva" %% "play-silhouette" % "2.0",
"com.mohiva" %% "play-silhouette-testkit" % "2.0" % "test",
"org.webjars" %% "webjars-play" % "2.3.0",
"org.webjars" % "bootstrap" % "3.1.1",
"org.webjars" % "jquery" % "1.11.0",
"net.codingwell" %% "scala-guice" % "4.0.0-beta5",
"com.mohiva" %% "play-silhouette-testkit" % "2.0" % "test",
"com.typesafe.play.extras" %% "play-geojson" % "1.2.0",
"com.github.tminglei" %% "slick-pg" % "0.8.2",
"org.slf4j" % "slf4j-api" % "1.7.7",
"org.slf4j" % "jcl-over-slf4j" % "1.7.7",
"joda-time" % "joda-time" % "2.9.4",
"org.geotools" % "gt-coverage" % "14.3",
"org.geotools" % "gt-epsg-hsql" % "14.3",
"org.geotools" % "gt-geotiff" % "14.3",
"org.geotools" % "gt-main" % "14.3" exclude("javax.media", "jai_core"),
"org.geotools" % "gt-referencing" % "14.3"
).map(_.force())
libraryDependencies ~= { _.map(_.exclude("org.slf4j", "slf4j-jdk14")) }
lazy val root = (project in file(".")).enablePlugins(PlayScala)
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.
)
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
javaOptions ++= Seq("-Xmx3072M", "-Xms2048M")
javaOptions in Test += "-Dconfig.file=conf/application.test.conf"
//********************************************************
// Scalariform settings
//********************************************************
defaultScalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(FormatXml, false)
.setPreference(DoubleIndentClassDeclaration, false)
.setPreference(PreserveDanglingCloseParenthesis, true)
fork in run := true