build.sbt 2.64 KB
Newer Older
1
val tapascoVersion = "2017.1-SNAPSHOT"
2
3
4

organization := "de.tu_darmstadt.esa.cs"

5
version := tapascoVersion
6

7
name := "Tapasco"
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

scalaVersion := "2.12.1"

libraryDependencies ++= Seq(
  "org.scala-lang" % "scala-compiler" % scalaVersion.value,
  "org.scala-lang" % "scala-reflect" % scalaVersion.value,
  "org.scala-lang.modules" % "scala-swing_2.12" % "2.0.0",
  "org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.4",
  "com.typesafe.play" %% "play-json" % "2.6.0-M3" exclude ("ch.qos.logback", "logback-classic"),
  "org.jfree" % "jfreechart" % "1.0.19",
  "org.slf4j" % "slf4j-api" % "1.7.22",
  "ch.qos.logback" % "logback-classic" % "1.2.1",
  "net.sf.jung" % "jung-api" % "2.1.1",
  "net.sf.jung" % "jung-visualization" % "2.1.1",
  "net.sf.jung" % "jung-graph-impl" % "2.1.1",
  "com.google.guava" % "guava" % "19.0",
  "com.google.code.findbugs" % "jsr305" % "3.0.1",
25
26
  "org.scalatest" %% "scalatest" % "3.0.3" % "test",
  "org.scalacheck" %% "scalacheck" % "1.13.5" % "test"
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
)

scalacOptions ++= Seq(
  "-feature",
  "-language:postfixOps",
  "-language:reflectiveCalls",
  "-deprecation",
  "-Ywarn-unused-import",
  "-Ywarn-infer-any"
)

scalacOptions in Compile ++= Seq(
  "-opt:unreachable-code",
  "-opt:simplify-jumps",
  "-opt:compact-locals",
  "-opt:copy-propagation",
  "-opt:redundant-casts",
  "-opt:box-unbox",
  "-opt:nullness-tracking",
  "-opt:closure-invocations",
  "-opt:l:classpath"/*,
  "-Xelide-below", "3000",
  "-Xdisable-assertions"*/
)

scalacOptions in (Compile,doc) ++= Seq(
  "-diagrams",
  //"-implicits",
  "-implicits-hide:."
)

fork in run := true

60
val tapasco = inputKey[Unit]("Run Tapasco command.")
61

62
tapasco := (runMain in Compile).partialInput (" de.tu_darmstadt.cs.esa.tapasco.Tapasco ").evaluated
63

64
val itapasco = InputKey[Unit]("itapasco", "Run interactive Tapasco GUI.")
65

66
fullRunInputTask(itapasco, Compile, "de.tu_darmstadt.cs.esa.tapasco.Tapasco", "itapasco")
67

68
fork in itapasco := true
69

70
javaOptions in itapasco += "-splash:icon/tapasco_icon.png"
71
72
73

val logviewer = inputKey[Unit]("Run interactive DSE log viewer.")

74
fullRunInputTask(logviewer, Compile, "de.tu_darmstadt.cs.esa.tapasco.itapasco.executables.LogViewer")
75

76
javaOptions in logviewer += "-splash:icon/tapasco_icon.png"
77
78
79

val reportviewer = inputKey[Unit]("Run interactive report viewer.")

80
fullRunInputTask(reportviewer, Compile, "de.tu_darmstadt.cs.esa.tapasco.itapasco.executables.ReportViewer")
81

82
javaOptions in reportviewer += "-splash:icon/tapasco_icon.png"
83
84
85
86
87

fork := true

test in assembly := {}

88
assemblyJarName := "Tapasco-" + tapascoVersion + ".jar"
89
90
91
92
93

parallelExecution in Test := false

fork in Test := false

94
mainClass in assembly := Some("de.tu_darmstadt.cs.esa.tapasco.Tapasco")
95