/
build.sbt
80 lines (64 loc) · 2.82 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name := "aktaion"
version := "2.0"
javaOptions ++= Seq("-Xmx4g", "-XX:MaxPermSize=2056M")
scalaVersion in ThisBuild := "2.12.2"
ivyScala := ivyScala.value map {
_.copy(overrideScalaVersion = true)
}
lazy val commonSettings = Seq(
version := "0.1-SNAPSHOT",
organization := "com.Aktaion",
scalaVersion := "2.12.2",
test in assembly := {}
)
mainClass in assembly := Some("com.aktaion.shell.UserInteractionLogic")
resolvers += "AkkaRepository" at "http://repo.akka.io/releases/"
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-compiler" % "2.12.2",
"org.scala-lang" % "scala-reflect" % "2.12.2"
)
libraryDependencies ++= Seq("org.slf4j" % "slf4j-api" % "1.7.10",
"org.slf4j" % "slf4j-simple" % "1.7.10"
)
libraryDependencies ++= Seq(
// ("org.apache.spark" %% "spark-mllib" % "1.6.2").exclude("javax.xml", "bind").exclude("stax-api", "stax"),
// "jline" % "jline" % "0.9.94",
"com.rockymadden.stringmetric" % "stringmetric-core_2.11" % "0.27.4",
// "org.apache.spark" %% "spark-core" % "1.6.2" % "provided",
"org.apache.commons" % "commons-math3" % "3.6.1",
"org.scalactic" %% "scalactic" % "3.0.1",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"nz.ac.waikato.cms.weka" % "weka-stable" % "3.6.6",
"net.liftweb" % "lift-json_2.12" % "3.2.0-M1"
).map(_.exclude("org.slf4j", "slf4j-simple")).map(_.exclude("org.slf4j", "sl4j-log4j12"))
//libraryDependencies +=
// ("org.apache.spark" %% "spark-mllib" % "1.6.2" excludeAll (
// ExclusionRule(organization = "javax.xml")
// )
// )
//libraryDependencies ++= Seq(
// ("org.apache.spark" %% "spark-core" % "1.6.2").
// // exclude("org.eclipse.jetty.orbit", "javax.servlet").
// // exclude("org.eclipse.jetty.orbit", "javax.transaction").
// // exclude("org.eclipse.jetty.orbit", "javax.mail").
// exclude("org.eclipse.jetty.orbit", "javax.activation").
// exclude("commons-beanutils", "commons-beanutils-core").
// exclude("commons-collections", "commons-collections").
// exclude("commons-collections", "commons-collections").
// exclude("com.esotericsoftware.minlog", "minlog").
// exclude("org.slf4j", "slf4j-simple")
// // exclude("com.google.guava", "guava")
//)
assemblyMergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) => {
// case PathList("javax", "servlet", xs @ _*) => MergeStrategy.last
case PathList("org", "apache", xs@_*) => MergeStrategy.last
case PathList("com", "esotericsoftware", xs@_*) => MergeStrategy.last
case PathList("com", "google", xs@_*) => MergeStrategy.last
case PathList("javax", "xml", xs@_*) => MergeStrategy.last
case PathList("org", "slf4j", xs@_*) => MergeStrategy.last
case PathList("net", "sourceforge", xs@_*) => MergeStrategy.last
//case PathList("javax", "servlet", xs @ _*) => MergeStrategy.last
case "about.html" => MergeStrategy.rename
case x => old(x)
}
}