forked from idio/spotlight-model-editor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
54 lines (47 loc) · 2.34 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
lazy val root = (project in file(".")).
enablePlugins(BuildInfoPlugin).
settings(
inThisBuild(List(
organization := "org.idio",
version := "0.1.0"
)),
name := "dbpedia-model-editor",
scalaVersion := "2.10.4",
resolvers ++= Seq(
Resolver.sonatypeRepo("public"),
Resolver.mavenLocal
),
libraryDependencies += "org.dbpedia.spotlight" % "core" % "1.1" exclude("jdbm", "jdbm") from "https://sourceforge.net/projects/spotlight-multilingual-docker/files/dbpedia-spotlight-1.1.jar",
libraryDependencies += "com.github.scopt" %% "scopt" % "3.2.0",
libraryDependencies += "org.mockito" % "mockito-all" % "1.9.5" % "test",
libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.5" % "test",
run / fork := true,
run / outputStrategy := Some(StdoutOutput),
test / parallelExecution := false,
assembly / assemblyJarName := name.value.toLowerCase + ".jar",
assembly / assemblyMergeStrategy := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case PathList("com", "esotericsoftware", "minlog", xs @ _*) => MergeStrategy.first // kryo-2.21.jar vs minlog-1.2.jar
case PathList("com", "sun", "jersey", xs @ _*) => MergeStrategy.first
case PathList("javax", "xml", xs @ _*) => MergeStrategy.first
case PathList("javax", "servlet", xs @ _*) => MergeStrategy.first
case PathList("javax", "ws", "rs", xs @ _*) => MergeStrategy.first // jersey-bundle-1.13.jar vs jsr311-api-1.1.1.jar
case PathList("org", "apache", "commons", xs @ _*) => MergeStrategy.first // commons-collections-3.2.1 vs commons-beanutils-1.8.0.jar
case PathList("org", "json", xs @ _*) => MergeStrategy.first
case PathList("org", "hamcrest", xs @ _*) => MergeStrategy.first
case PathList("org", "objenesis", xs @ _*) => MergeStrategy.first
case PathList("org", "w3c", "dom", xs @ _*) => MergeStrategy.first
case PathList("opennlp", xs @ _*) => MergeStrategy.first
case PathList("junit", xs @ _*) => MergeStrategy.first
case x => MergeStrategy.defaultMergeStrategy(x)
},
assembly / mainClass := Some("org.idio.dbpedia.spotlight.SpotlightModelReader"),
assembly / test := {},
buildInfoKeys := BuildInfoKey.ofN(
name,
version,
scalaVersion,
sbtVersion
),
buildInfoPackage := "org.idio.spotlight.editor"
)