-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
29 lines (23 loc) · 964 Bytes
/
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
name := "geffe"
version := "0.1"
scalaVersion := "2.13.0"
resolvers += "sandec" at "https://sandec.bintray.com/repo"
// gui
libraryDependencies += "org.scalafx" %% "scalafx" % "12.0.2-R18"
val javafxModules = Seq("base", "controls", "fxml", "graphics", "media", "swing", "web")
val osName = System.getProperty("os.name") match {
case n if n.startsWith("Linux") => "linux"
case n if n.startsWith("Mac") => "mac"
case n if n.startsWith("Windows") => "win"
case _ => throw new Exception("Unknown platform!")
}
libraryDependencies ++= javafxModules.map(m => "org.openjfx" % s"javafx-$m" % "12.0.2" classifier osName)
libraryDependencies += "com.sandec" % "mdfx" % "0.1.6"
// test
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.8" % "test"
assemblyJarName in assembly := "geffe.jar"
test in assembly := {}
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}