-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
38 lines (23 loc) · 1.05 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
import _root_.sbtassembly.AssemblyPlugin.autoImport._
import _root_.sbtassembly.PathList
//import sbt._
assemblyJarName in assembly := "SparkWord2Vec.jar" // name of generated jar
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)
test in assembly := {} // {} means: no test
val meta = """META.INF(.)*""".r
assemblyMergeStrategy in assembly := {
case PathList("javax", "servlet", xs@_*) => MergeStrategy.last
case PathList(ps@_*) if ps.last endsWith ".html" => MergeStrategy.first
case n if n.startsWith("reference.conf") => MergeStrategy.concat
case n if n.endsWith(".conf") => MergeStrategy.concat
case meta(_) => MergeStrategy.discard
case x => MergeStrategy.last
}
name := "SparkWord2vec"
version := "1.0"
scalaVersion := "2.11.7"
organization := "Fraunhofer IAIS"
description := "Spark Word2Vec implementation with word senses"
//resolvers += Resolver.mavenLocal
//resolvers += "Local Maven Repository" at "file:///home/hwang/.m2/repository"
//libraryDependencies += "com.jujutsu.tsne" %% "tsne" % "1.0.1"