-
Notifications
You must be signed in to change notification settings - Fork 38
/
build.sbt
61 lines (52 loc) · 2.14 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
name := "HsunTzu"
version := "0.9"
scalaVersion := "2.12.1"
libraryDependencies ++= Seq(
"org.apache.hadoop" % "hadoop-common" % "2.8.1",
"org.apache.hadoop" % "hadoop-hdfs" % "2.8.1",
"org.apache.hadoop" % "hadoop-client" % "2.8.1",
"org.apache.hadoop" % "hadoop-mapreduce-client-core" % "2.8.1",
"org.apache.hadoop" % "hadoop-mapreduce-client-common" % "2.8.1",
// https://mvnrepository.com/artifact/org.apache.ant/ant
"org.apache.ant" % "ant" % "1.10.1"
// https://mvnrepository.com/artifact/org.kamranzafar/jtar
//"org.kamranzafar" % "jtar" % "2.3"
)
// json parser tools
val circeVersion = "0.8.0"
libraryDependencies ++= Seq(
"io.circe" %% "circe-core",
"io.circe" %% "circe-generic",
"io.circe" %% "circe-parser"
).map(_ % circeVersion)
lazy val loggingSettings = Seq(
libraryDependencies ++= Seq(
"com.typesafe.scala-logging" %% "scala-logging" % "3.7.2",
"ch.qos.logback" % "logback-classic" % "1.2.3")
)
lazy val commonSettings = loggingSettings ++ Seq(
// Plugin that prints better implicit resolution errors.
addCompilerPlugin("io.tryp" % "splain" % "0.2.7" cross CrossVersion.patch)
)
lazy val testSettings = Seq(
libraryDependencies ++= Seq(
"junit" % "junit" % "4.12",
"org.scalactic" %% "scalactic" % "3.0.4",
"org.scalatest" %% "scalatest" % "3.0.4" % "test"),
logBuffered in Test := false,
fork in test := false,
testForkedParallel in Test := false,
parallelExecution in Test := false,
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oDF")
)
resolvers += Resolver.sonatypeRepo("snapshots")
libraryDependencies += "org.platanios" %% "tensorflow" % "0.1.0-SNAPSHOT"
mainClass := Some("com.HsunTzu.exec.execCompress")
unmanagedResourceDirectories in Compile += baseDirectory.value /"src/main/resources"
resourceDirectory in Compile := baseDirectory.value / "src/webapp"
resourceDirectory in Compile := baseDirectory.value / "src/main/resource"
assemblyOutputPath in assembly := baseDirectory.value/"HsunTzuPro-beat-2.0.jar"
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}