-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
40 lines (32 loc) · 1.64 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
// https://github.com/scalafx/ScalaFX-Tutorials/blob/master/scalafxml-example/build.sbt
name := "rl-peg-solitaire"
version := "0.1"
scalaVersion := "2.12.10"
scalacOptions ++= Seq("-unchecked", "-deprecation", "-Xcheckinit", "-encoding", "utf8")
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
resourceDirectory in Compile := (scalaSource in Compile).value
libraryDependencies ++= Seq(
"org.scalafx" %% "scalafx" % "12.0.2-R18",
"org.scalafx" %% "scalafxml-core-sfx8" % "0.5"
)
// Add OS specific JavaFX dependencies
val javafxModules = Seq("base", "controls", "fxml", "graphics", "media", "swing", "web")
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!")
}
libraryDependencies ++= javafxModules.map(m => "org.openjfx" % s"javafx-$m" % "12.0.2" classifier osName)
// Fork a new JVM for 'run' and 'test:run', to avoid JavaFX double initialization problems
fork := true
shellPrompt := { _ =>
System.getProperty("user.name") + s":${name.value}> "
}
// DL4J CPU
libraryDependencies += "org.nd4j" % "nd4j-native-platform" % "1.0.0-beta4"
libraryDependencies += "org.deeplearning4j" % "deeplearning4j-core" % "1.0.0-beta4"
// DL4J GPU
//libraryDependencies += "org.nd4j" % "nd4j-cuda-10.2-platform" % "1.0.0-beta6"
//libraryDependencies += "org.deeplearning4j" % "deeplearning4j-core" % "1.0.0-beta6"
//libraryDependencies += "org.bytedeco" % "cuda-platform" % "10.2-7.6-1.5.3"