forked from Basel-byte/BOARD_GAMES__ENGINE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
29 lines (22 loc) · 952 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 := "BOARD_GAMES_ENGINE"
version := "0.1"
// Version of Scala used by the project
scalaVersion := "2.13.8"
// Add dependency on ScalaFX library
libraryDependencies += "org.scalafx" %% "scalafx" % "18.0.1-R27"
scalacOptions ++= Seq("-unchecked", "-deprecation", "-encoding", "utf8", "-feature")
mainClass := Some("hello.ScalaFXHelloWorld")
// Fork a new JVM for 'run' and 'test:run', to avoid JavaFX double initialization problems
fork := true
// Add JavaFX dependencies
libraryDependencies ++= {
// Determine OS version of JavaFX binaries
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!")
}
Seq("base", "controls", "fxml", "graphics", "media", "swing", "web")
.map(m => "org.openjfx" % s"javafx-$m" % "18.0.1" classifier osName)
}