-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
52 lines (48 loc) · 1.6 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
import _root_.sbtassembly.AssemblyPlugin.autoImport._
import _root_.sbtassembly.PathList
lazy val commonSettings = Seq(
name := "web2warc",
version := "1.1",
scalaVersion := "2.11.11",
organization := "com.github.helgeho"
)
lazy val web2warc = (project in file(".")).
settings(commonSettings: _*).
settings(
libraryDependencies ++= Seq(
"org.jsoup" % "jsoup" % "1.8.3",
"commons-io" % "commons-io" % "2.4",
"org.apache.httpcomponents" % "httpclient" % "4.5.1",
"org.netpreserve.commons" % "webarchive-commons" % "1.1.5" excludeAll(
ExclusionRule(organization = "org.apache.hadoop", name = "hadoop-core"))
),
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
),
publishMavenStyle := true,
publishArtifact in Test := false,
homepage := Some(url("https://github.com/helgeho/Web2Warc")),
scmInfo := Some(
ScmInfo(
url("https://github.com/helgeho/Web2Warc"),
"scm:[email protected]:helgeho/Web2Warc.git"
)
),
developers := List(
Developer(
id = "helgeho",
name = "Helge Holzmann",
email = "[email protected]",
url = url("http://www.HelgeHolzmann.de")
)
),
licenses := Seq("MIT" -> url("http://www.opensource.org/licenses/mit-license.php"))
)
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false, cacheOutput = false)
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case _ => MergeStrategy.first
}