代码拉取完成,页面将自动刷新
name := "demo"
version := "0.2.0"
scalaVersion := "2.11.8"
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",
"-feature")
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
shellPrompt := { s => Project.extract(s).currentProject.id + " > " }
// We need to bump up the memory for some of the examples working with the landsat image.
javaOptions += "-Xmx4G"
fork in run := true
outputStrategy in run := Some(StdoutOutput)
connectInput in run := true
val gtVersion = "2.1.0"
val sparkVersion = "2.3.1"
val akkaActorVersion = "2.4.3"
val akkaHttpVersion = "10.0.3"
libraryDependencies ++= Seq(
"org.locationtech.geotrellis" %% "geotrellis-spark" % gtVersion,
"org.apache.spark" %% "spark-core" % sparkVersion,
"com.typesafe.akka" %% "akka-actor" % akkaActorVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
"org.scalatest" %% "scalatest" % "2.2.0" % "test"
)
assemblyShadeRules in assembly := {
val shadePackage = "com.azavea.shaded.demo"
Seq(
ShadeRule.rename("com.google.common.**" -> s"$shadePackage.google.common.@1")
.inLibrary(
"com.azavea.geotrellis" %% "geotrellis-cassandra" % gtVersion,
"com.github.fge" % "json-schema-validator" % "2.2.6"
).inAll
)
}
test in assembly := {}
assemblyMergeStrategy in assembly := {
case m if m.toLowerCase.endsWith("manifest.mf") => MergeStrategy.discard
case m if m.toLowerCase.matches("meta-inf.*\\.sf$") => MergeStrategy.discard
case "reference.conf" | "application.conf" => MergeStrategy.concat
case _ => MergeStrategy.first
}
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。