Add JavaFx dependencies

parent ad201c61
......@@ -8,11 +8,37 @@ libraryDependencies += "com.typesafe.play" %% "play-json" % "2.8.1"
libraryDependencies += "com.github.pureconfig" %% "pureconfig" % "0.12.2"
libraryDependencies += "com.lihaoyi" %% "requests" % "0.4.6"
/* JAVAFX */
fork := true
libraryDependencies += "org.scalafx" %% "scalafx" % "12.0.2-R18"
// 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!")
}
// Add dependency on JavaFX libraries, OS dependent
lazy val javaFXModules = Seq("base", "controls", "fxml", "graphics", "media", "swing", "web")
libraryDependencies ++= javaFXModules.map( m =>
"org.openjfx" % s"javafx-$m" % "12.0.2" classifier osName
)
/* PACKAGING */
enablePlugins(JavaAppPackaging)
enablePlugins(UniversalPlugin)
enablePlugins(WindowsPlugin)
// Native Packager
maintainer := "Ignamarte"
packageSummary := "Sipams"
packageSummary := "Sipam"
packageDescription := """Simple PHP Ipam client"""
// disable using the Scala version in output paths and artifacts
crossPaths := false
assemblyJarName in assembly := "Sipam.jar"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment