-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
35 lines (30 loc) · 1.16 KB
/
build.sbt
File metadata and controls
35 lines (30 loc) · 1.16 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
34
35
name := "cs2inclass"
organization := "trinity"
version := "0.1"
scalaVersion := "2.13.6"
libraryDependencies ++= Seq(
"org.scalafx" %% "scalafx" % "16.0.0-R24",
"com.github.sbt" % "junit-interface" % "0.13.2" % Test,
"org.scalatest" %% "scalatest" % "3.2.9" % "test" //http://www.scalatest.org/download
)
libraryDependencies ++= javaFXModules
// Add JavaFX dependencies
lazy val javaFXModules = {
// 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" % "11" classifier osName
)
}
// Fork a new JVM for 'run' and 'test:run' to avoid JavaFX double initialization problems
fork := true
//
connectInput := true
// set the main class for the main 'run' task
// change Compile to Test to set it for 'test:run'
//Compile / run / mainClass := Some("cs2.net.ChatProgram")