-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
33 lines (31 loc) · 1.09 KB
/
Copy pathbuild.sbt
File metadata and controls
33 lines (31 loc) · 1.09 KB
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
val scala3Version = "3.6.2"
lazy val root = project
.in(file("."))
.settings(
// Project
name := "spaceinvaders42",
version := "0.1.0",
scalaVersion := scala3Version,
// --
// Test framework
libraryDependencies += "org.scalameta" %% "munit" % "1.0.0" % Test,
// Cats
libraryDependencies += "org.typelevel" %% "cats-effect" % "3.5.7",
// fs2
libraryDependencies += "co.fs2" %% "fs2-core" % "3.9.3",
// Scalafx
libraryDependencies += "org.scalafx" %% "scalafx" % "22.0.0-R33",
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" % "17" classifier osName)
},
// Enable forking for JavaFX runtime
fork := true
)