-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sbt
54 lines (36 loc) · 1.42 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
import sbtassembly.Plugin.{MergeStrategy, AssemblyKeys}
import AssemblyKeys._
name := "VMPlaceS"
version := "0.5"
organization := "org.discovery"
scalaVersion := "2.10.4"
crossPaths := false
retrieveManaged := true
javacOptions += "-Xlint:unchecked"
libraryDependencies ++= Seq(
"org.btrplace" % "scheduler-api" % "0.42",
"org.btrplace" % "scheduler-choco" % "0.42",
"org.btrplace" % "scheduler" % "0.42",
"org.btrplace" % "bench" % "0.42"
)
libraryDependencies += "com.hubspot.jinjava" % "jinjava" % "1.0.5"
// Excluding the following directories for compilation: scheduling/dvms
excludeFilter in unmanagedSources := new sbt.FileFilter{
//def accept(f: File): Boolean = "(?s).*scheduling/dvms/.*|.*scheduling/hubis/.*".r.pattern.matcher(f.getAbsolutePath).matches
def accept(f: File): Boolean = "(?s).*scheduling/distributed/dvms/.*".r.pattern.matcher(f.getAbsolutePath).matches
}
seq(assemblySettings: _*)
mainClass in assembly := Some("simulation.Main")
excludedJars in assembly <<= (fullClasspath in assembly) map { cp =>
cp filter {_.data.getName == "simgrid_full.jar"}
}
test in assembly := {}
jarName in assembly := "simulation.jar"
assemblyOption in assembly ~= { _.copy(includeScala = false) }
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
case "application.conf" => MergeStrategy.rename
case "META-INF/MANIFEST.MF" => old("META-INF/MANIFEST.MF")
case x => MergeStrategy.first
}
}