-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.sbt
63 lines (55 loc) · 2.17 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
import com.here.bom.Bom
ThisBuild / organization := "com.here.platform.data.processing.example.scala"
ThisBuild / version := "0.0.928"
ThisBuild / scalaVersion := "2.12.18"
val organizationSettings: Seq[Setting[_]] = Seq(
projectInfo := ModuleInfo(
nameFormal = "pedestrian-topologies-extraction-geojson",
description = "Pedestrian topologies extraction compiler example to GeoJson in scala",
homepage = Some(url("http://here.com")),
startYear = Some(2019),
licenses = Vector(("Apache-2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.txt"))),
organizationName = "HERE Europe B.V",
organizationHomepage = Some(url("http://here.com")),
scmInfo = Some(
ScmInfo(
connection = "scm:git:https://github.com/heremaps/here-workspace-examples-java-scala.git",
devConnection = "scm:git:git@github.com:heremaps/here-workspace-examples-java-scala.git",
browseUrl = url("https://github.com/heremaps/here-workspace-examples-java-scala")
)
),
developers = Vector()
)
)
val sdkBomVersion = "2.70.5"
assembly / assemblyJarName := f"${name.value}-${version.value}-platform.jar"
assembly / assemblyMergeStrategy := {
case "module-info.class" => MergeStrategy.discard
case PathList("META-INF", xs @ _*) =>
(xs map {
_.toLowerCase
}) match {
case ps @ (x :: xs)
if ps.last.toLowerCase.endsWith(".sf") || ps.last.toLowerCase.endsWith(".dsa") || ps.last.toLowerCase
.endsWith(".rsa") =>
MergeStrategy.discard
case _ => MergeStrategy.first
}
case "reference.conf" => MergeStrategy.concat
case _ => MergeStrategy.first
}
assembly / assemblyShadeRules := Seq(
ShadeRule.rename("com.google.protobuf.**" -> "shaded.com.google.protobuf.@1").inAll
)
lazy val deps =
Bom.read("com.here.platform" %% "sdk-batch-bom" % sdkBomVersion)(bom => Dependencies(bom))
lazy val root = (project in file("."))
.settings(deps)
.settings(organizationSettings)
.settings(
libraryDependencies ++= deps.key.value.dependencies
)
.settings(
dependencyOverrides ++= deps.key.value.allDependencies
)
resolvers += "HERE_PLATFORM_ARTIFACT" at "here+artifact-service://artifact-service"