-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathbuild.sbt
More file actions
59 lines (49 loc) · 1.79 KB
/
build.sbt
File metadata and controls
59 lines (49 loc) · 1.79 KB
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
// Rename this as you see fit
name := "geotrellis-sbt-template"
version := "0.2.0"
scalaVersion := "2.11.12"
organization := "com.azavea"
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-Yinline-warnings",
"-language:implicitConversions",
"-language:reflectiveCalls",
"-language:higherKinds",
"-language:postfixOps",
"-language:existentials")
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
resolvers ++= Seq(
"locationtech-releases" at "https://repo.locationtech.org/content/groups/releases",
"locationtech-snapshots" at "https://repo.locationtech.org/content/groups/snapshots"
)
libraryDependencies ++= Seq(
"org.locationtech.geotrellis" %% "geotrellis-spark" % "1.2.0-RC2",
"org.apache.spark" %% "spark-core" % "2.2.0" % Provided,
"org.scalatest" %% "scalatest" % "2.2.0" % Test
)
// When creating fat jar, remote some files with
// bad signatures and resolve conflicts by taking the first
// versions of shared packaged types.
assemblyMergeStrategy in assembly := {
case "reference.conf" => MergeStrategy.concat
case "application.conf" => MergeStrategy.concat
case "META-INF/MANIFEST.MF" => MergeStrategy.discard
case "META-INF\\MANIFEST.MF" => MergeStrategy.discard
case "META-INF/ECLIPSEF.RSA" => MergeStrategy.discard
case "META-INF/ECLIPSEF.SF" => MergeStrategy.discard
case _ => MergeStrategy.first
}
initialCommands in console := """
|import geotrellis.raster._
|import geotrellis.vector._
|import geotrellis.proj4._
|import geotrellis.spark._
|import geotrellis.spark.io._
|import geotrellis.spark.io.hadoop._
|import geotrellis.spark.tiling._
|import geotrellis.spark.util._
""".stripMargin