1 Star 1 Fork 2

weishujie/geotrellis-landsat-tutorial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sbt 2.86 KB
一键复制 编辑 原始数据 按行查看 历史
weishujie 提交于 2019-03-25 12:59 . 修改了application.conf
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wei_shujie/geotrellis-landsat-tutorial.git
[email protected]:wei_shujie/geotrellis-landsat-tutorial.git
wei_shujie
geotrellis-landsat-tutorial
geotrellis-landsat-tutorial
master

搜索帮助