forked from workingDog/kmlToGeojson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
44 lines (31 loc) · 1.61 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
organization := "com.github.workingDog"
name := "kmlToGeojson"
version := (version in ThisBuild).value
scalaVersion := "2.13.1"
crossScalaVersions := Seq("2.13.1")
resolvers += Resolver.bintrayRepo("jroper", "maven")
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % "2.0.0-M1",
"com.typesafe.play" %% "play-json" % "2.8.1",
"au.id.jazzy" %% "play-geojson" % "1.6.0",
"com.github.workingDog" %% "scalakml" % "1.5"
)
homepage := Some(url("https://github.com/workingDog/kmlToGeojson"))
licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
mainClass in(Compile, run) := Some("com.kodekutters.KmlToGeojson")
test in assembly := {}
assemblyMergeStrategy in assembly := {
case PathList(xs@_*) if xs.last.toLowerCase endsWith ".rsa" => MergeStrategy.discard
case PathList(xs@_*) if xs.last.toLowerCase endsWith ".dsa" => MergeStrategy.discard
case PathList(xs@_*) if xs.last.toLowerCase endsWith ".sf" => MergeStrategy.discard
case PathList(xs@_*) if xs.last.toLowerCase endsWith ".des" => MergeStrategy.discard
case PathList(xs@_*) if xs.last endsWith "LICENSES.txt" => MergeStrategy.discard
case PathList(xs@_*) if xs.last endsWith "LICENSE.txt" => MergeStrategy.discard
case PathList(xs@_*) if xs.last endsWith "logback.xml" => MergeStrategy.discard
case PathList(xs@_*) if xs.last endsWith "module-info.class" => MergeStrategy.discard
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
mainClass in assembly := Some("com.kodekutters.KmlToGeojson")
assemblyJarName in assembly := "kmltogeojson-" + version.value + ".jar"