generated from MarkCLewis/CS2InClassStarter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
28 lines (25 loc) · 976 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
name := "InClass"
version := "1.0"
scalaVersion := "2.12.12"
run / fork := true
run / connectInput := true
// 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!")
}
lazy val javaFXModules = Seq("base", "controls", "fxml", "graphics", "media", "swing", "web")
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.6.8",
"com.typesafe.akka" %% "akka-testkit" % "2.6.8" % Test,
"org.scala-lang.modules" %% "scala-xml" % "1.3.0",
"org.scalafx" %% "scalafx" % "11-R16",
"com.novocode" % "junit-interface" % "0.11" % Test,
"org.scalactic" %% "scalactic" % "3.2.2",
"org.scalatest" %% "scalatest" % "3.2.2" % "test"
)
libraryDependencies ++= javaFXModules.map( m =>
"org.openjfx" % s"javafx-$m" % "11" classifier osName
)