-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
66 lines (55 loc) · 3.32 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
64
65
66
name := "DBTF"
version := "2.0"
scalaVersion := "2.11.11"
val sparkVersion = "2.2.0"
lazy val providedSparkAndHadoopDependencies = Seq(
("org.apache.spark" %% "spark-core" % sparkVersion).
exclude("org.mortbay.jetty", "servlet-api").
exclude("commons-beanutils", "commons-beanutils-core").
exclude("commons-collections", "commons-collections").
exclude("commons-logging", "commons-logging").
exclude("com.esotericsoftware.minlog", "minlog"),
"org.apache.hadoop" % "hadoop-client" % "2.7.4" exclude("javax.servlet.jsp", "jsp-api") exclude("com.sun.jersey", "jersey-server") exclude("com.sun.jersey", "jersey-core") exclude("javax.servlet", "servlet-api") exclude("tomcat", "jasper-compiler") exclude("tomcat", "jasper-runtime")
//"org.apache.hadoop" % "hadoop-client" % "2.7.0" excludeAll ExclusionRule(organization = "javax.servlet")
)
//libraryDependencies ++= providedSparkAndHadoopDependencies.map(_ % "provided")
libraryDependencies ++= providedSparkAndHadoopDependencies
//libraryDependencies += "org.apache.spark" %% "spark-sql" % sparkVersion
//libraryDependencies += "org.apache.spark" %% "spark-catalyst" % sparkVersion
//libraryDependencies += "org.apache.spark" %% "spark-graphx" % sparkVersion
//libraryDependencies += "org.apache.spark" %% "spark-mllib" % sparkVersion
libraryDependencies += "com.github.scopt" %% "scopt" % "3.5.0"
libraryDependencies += "commons-io" % "commons-io" % "2.5"
libraryDependencies += "org.scalactic" %% "scalactic" % "2.2.6"
libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.6" % "test"
libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.16"
libraryDependencies += "org.slf4j" % "slf4j-simple" % "1.7.16"
libraryDependencies += "org.clapper" %% "grizzled-slf4j" % "1.0.4"
scalacOptions ++= Seq("-deprecation", "-unchecked", "-Xlint", "-Xdisable-assertions")
// mainClass in assembly := Some("dbtf.DBTFDriver")
assemblyMergeStrategy in assembly := {
case "features.xml" => MergeStrategy.first // infinispan-core
case PathList("META-INF", "DEPENDENCIES.txt") => MergeStrategy.first // infinispan-core
case PathList("javax", "servlet", xs @ _*) => MergeStrategy.last
case PathList("javax", "activation", xs @ _*) => MergeStrategy.last
case PathList("javax", "inject", xs @ _*) => MergeStrategy.last
case PathList("org", "apache", xs @ _*) => MergeStrategy.last
case PathList("org", "aopalliance", xs @ _*) => MergeStrategy.last
case PathList("com", "google", xs @ _*) => MergeStrategy.last
case PathList("com", "esotericsoftware", xs @ _*) => MergeStrategy.last
case PathList("com", "codahale", xs @ _*) => MergeStrategy.last
case PathList("com", "yammer", xs @ _*) => MergeStrategy.last
case PathList("org", "slf4j", xs @ _*) => MergeStrategy.last
case "about.html" => MergeStrategy.rename
case "META-INF/ECLIPSEF.RSA" => MergeStrategy.last
case "META-INF/mailcap" => MergeStrategy.last
case "META-INF/mimetypes.default" => MergeStrategy.last
case "plugin.properties" => MergeStrategy.last
case "log4j.properties" => MergeStrategy.last
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
test in assembly := {}
//assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)
//run in Compile <<= Defaults.runTask(fullClasspath in Compile, mainClass in (Compile, run), runner in (Compile, run))