-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.sbt
66 lines (52 loc) · 2.82 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
import play.PlayScala
name := """sidewalk-webpage"""
version := "8.1.0"
scalaVersion := "2.10.7"
sources in (Compile,doc) := Seq.empty
publishArtifact in (Compile, packageDoc) := false
resolvers := ("Atlassian Releases" at "https://maven.atlassian.com/public/") +: resolvers.value
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Seq(
"geosolutions" at "http://maven.geo-solutions.it/",
"OSGeo" at "https://repo.osgeo.org/repository/release/"
)
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-jdbc" % "2.3.10",
"com.typesafe.play" %% "anorm" % "2.3.10",
"com.typesafe.play" %% "play-cache" % "2.3.10",
"com.typesafe.play" %% "filters-helpers" % "2.3.10",
"com.vividsolutions" % "jts" % "1.13",
"com.typesafe.slick" %% "slick" % "2.1.0",
"com.typesafe.play" %% "play-slick" % "0.8.1",
"com.typesafe.play" %% "play-mailer" % "2.4.1",
"org.postgresql" % "postgresql" % "42.7.1",
"com.mohiva" %% "play-silhouette" % "2.0.2",
"net.codingwell" %% "scala-guice" % "4.1.1",
"com.typesafe.play.extras" %% "play-geojson" % "1.3.1",
"com.github.tminglei" %% "slick-pg" % "0.8.6",
"joda-time" % "joda-time" % "2.10.14",
"org.geotools" % "gt-epsg-hsql" % "25.0" exclude("javax.media", "jai_core"),
"org.geotools" % "gt-shapefile" % "25.0" exclude("javax.media", "jai_core"),
// Below are transitive dependencies that were missing jars in default repositories.
// https://github.com/aileenzeng/sidewalk-docker/issues/5
// https://github.com/aileenzeng/sidewalk-docker/issues/26
// https://stackoverflow.com/questions/50058646/sbt-occurred-an-error-because-failed-to-install-a-dependency-at-first-time-thoug
// https://github.com/sbt/sbt/issues/1138#issuecomment-36169177
"javax.media" % "jai_core" % "1.1.3" from "https://repository.jboss.org/maven2/javax/media/jai-core/1.1.3/jai-core-1.1.3.jar"
).map(_.force())
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("-Xmx4096M", "-Xms2048M")
fork in run := true