-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
71 lines (53 loc) · 2.52 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
import sbtassembly.Plugin._
import AssemblyKeys._
assemblySettings
atmosSettings
name := "spdyTest"
version := "0.1"
scalaVersion := "2.10.2"
resolvers ++= Seq("Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
"releases" at "http://oss.sonatype.org/content/repositories/releases",
"Eligosource Releases" at "http://repo.eligotech.com/nexus/content/repositories/eligosource-releases",
"Eligosource Snapshots" at "http://repo.eligotech.com/nexus/content/repositories/eligosource-snapshots")
libraryDependencies ++= Seq("com.typesafe.akka" %% "akka-actor" % "2.2.0",
"com.typesafe.akka" % "akka-kernel_2.10" % "2.2.0",
"org.mashupbots.socko" %% "socko-webserver" % "0.3.0",
"net.liftweb" %% "lift-json" % "2.5-RC6",
"org.eligosource" %% "eventsourced-core" % "0.6.0",
"org.eligosource" %% "eventsourced-journal-leveldb" % "0.6.0")
AtmosKeys.includeConfig in Atmos += "AkkaConfig"
fork := true
javaOptions += "-Xbootclasspath/p:/home/bongani/Documents/npn-boot-1.1.3.v20130313.jar"
javaOptions in run += "-Xms2048m"
javaOptions in run += "-Xmx2048m"
javaOptions in run += "-XX:+UseParallelGC"
javaOptions in run += "-XX:+AggressiveOpts"
javaOptions in run += "-XX:+UseFastAccessorMethods"
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
case PathList("javax", "servlet", xs @ _*) => MergeStrategy.first
case x if x endsWith "pom.properties" => MergeStrategy.first
case x if x endsWith "pom.xml" => MergeStrategy.concat
case "reference.conf" | "rootdoc.txt" => MergeStrategy.concat
case x if x endsWith "NOTICE.txt" => MergeStrategy.concat
case x if x endsWith "NOTICE" => MergeStrategy.concat
case x if x endsWith "LICENSE.txt" => MergeStrategy.concat
case x if x endsWith "LICENSE" => MergeStrategy.concat
case PathList("META-INF", xs @ _*) =>
(xs map {_.toLowerCase}) match {
case ("manifest.mf" :: Nil) | ("index.list" :: Nil) | ("dependencies" :: Nil) =>
MergeStrategy.discard
case ps @ (x :: xs) if ps.last.endsWith(".sf") || ps.last.endsWith(".dsa") =>
MergeStrategy.discard
case "plexus" :: xs =>
MergeStrategy.discard
case "services" :: xs =>
MergeStrategy.filterDistinctLines
case ("spring.schemas" :: Nil) | ("spring.handlers" :: Nil) =>
MergeStrategy.filterDistinctLines
case _ => MergeStrategy.deduplicate
}
case x if x endsWith "IsNull.class" => MergeStrategy.concat
case x => MergeStrategy.first
}
}