-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
66 lines (50 loc) · 2.64 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
import sbt._
import Keys._
name := "cyberstation"
scalaVersion := "2.12.8"
version := (version in ThisBuild).value
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
libraryDependencies ++= Seq(
"org.neo4j" % "neo4j" % "3.3.3",
"com.typesafe.play" %% "play-ahc-ws-standalone" % "2.0.1",
"com.github.workingDog" %% "scalastix" % "0.9",
"com.github.workingDog" %% "taxii2lib" % "0.5",
"com.github.workingDog" %% "stixtoneolib" % "0.4",
"org.reactivemongo" %% "reactivemongo" % "0.16.2",
"org.reactivemongo" %% "reactivemongo-play-json" % "0.16.2-play27",
"com.typesafe.scala-logging" %% "scala-logging" % "3.8.0"
).map(_.exclude("org.slf4j", "*"))
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % "1.1.1",
"com.typesafe" % "config" % "1.3.3",
"com.google.inject" % "guice" % "4.2.0",
"com.jfoenix" % "jfoenix" % "8.0.8",
"org.scalafx" %% "scalafx" % "11-R16",
"org.scalafx" %% "scalafxml-core-sfx8" % "0.4",
"ch.qos.logback" % "logback-classic" % "1.2.3"
)
homepage := Some(url("https://github.com/workingDog/cyberstationFX"))
licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked", "-Xlint")
// Fork a new JVM for 'run' and 'test:run', to avoid JavaFX double initialization problems
fork := true
assemblyMergeStrategy in assembly := {
case PathList(xs@_*) if xs.last.toLowerCase endsWith ".rsa" => MergeStrategy.discard
case PathList(xs@_*) if xs.last.toLowerCase endsWith ".dsa" => MergeStrategy.discard
case PathList(xs@_*) if xs.last.toLowerCase endsWith ".sf" => MergeStrategy.discard
case PathList(xs@_*) if xs.last.toLowerCase endsWith ".des" => MergeStrategy.discard
case PathList(xs@_*) if xs.last endsWith "LICENSES.txt" => MergeStrategy.discard
case PathList(xs@_*) if xs.last endsWith "LICENSE.txt" => MergeStrategy.discard
case PathList(xs@_*) if xs.last endsWith "logback.xml" => MergeStrategy.discard
case PathList(xs @_*) if xs.last.toLowerCase endsWith ".fxml" => MergeStrategy.concat
case "application.conf" => MergeStrategy.concat
case x if x.endsWith("io.netty.versions.properties") => MergeStrategy.first
case x if x.endsWith("libnetty_transport_native_epoll_x86_64.so") => MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
assemblyJarName in assembly := "cyberstation-" + version.value + ".jar"
mainClass in assembly := Some("cyber.CyberStationApp")
mainClass in(Compile, run) := Some("cyber.CyberStationApp")