-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
26 lines (20 loc) · 896 Bytes
/
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
val sparkVersion = "2.2.3"
lazy val lgdScala = (project in file("."))
.settings(
name := "lgd_scala",
version := "1.0",
scalaVersion := "2.11.8",
scalacOptions ++= Seq(
"-encoding", "UTF-8"
),
libraryDependencies += ("org.apache.spark" %% "spark-core" % sparkVersion % "provided"),
libraryDependencies += ("org.apache.spark" %% "spark-sql" % sparkVersion % "provided"),
libraryDependencies += ("com.github.scopt" %% "scopt" % "3.3.0"),
(unmanagedResources in Compile) := (unmanagedResources in Compile).value.filterNot(_.getName.startsWith("log4j")),
assemblyJarName in assembly := s"${name.value}_${version.value}.jar",
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x) }
)