-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
25 lines (22 loc) · 802 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
name := "SpaceGame"
version := "1.0"
scalaVersion := "2.12.10"
run / fork := true
run / connectInput := true
libraryDependencies ++= Seq(
"org.scalafx" %% "scalafx" % "8.0.144-R12",
"com.novocode" % "junit-interface" % "0.11" % Test,
"org.scalactic" %% "scalactic" % "3.0.5",
"org.scalatest" %% "scalatest" % "3.0.5" % "test"
)
lazy 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!")
}
// Add JavaFX dependencies
lazy val javaFXModules = Seq("base", "controls", "fxml", "graphics", "media", "swing", "web")
libraryDependencies ++= javaFXModules.map( m=>
"org.openjfx" % s"javafx-$m" % "11" classifier osName
)