2016-09-25 04:06:36 +00:00
|
|
|
import Dependencies._
|
|
|
|
import Helpers._
|
|
|
|
import Resolvers._
|
|
|
|
|
2020-03-29 17:36:26 +00:00
|
|
|
// 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")
|
|
|
|
|
2016-09-25 04:06:36 +00:00
|
|
|
lazy val root = (project in file ("."))
|
2017-10-30 02:21:22 +00:00
|
|
|
.enablePlugins(BasicSettings, SiteSettingsPlugin)
|
2016-09-25 04:06:36 +00:00
|
|
|
.settings(Publish.settings: _*)
|
|
|
|
.settings(Release.settings: _*)
|
|
|
|
.settings(resolvers += sonatypeRelease)
|
|
|
|
.settings(
|
|
|
|
name := "ScalaFX Utils",
|
|
|
|
|
|
|
|
libraryDependencies ++= Seq (
|
|
|
|
log4s,
|
|
|
|
slf4j,
|
|
|
|
jclBridge % "runtime,optional",
|
|
|
|
log4jBridge % "runtime,optional",
|
|
|
|
logback % "runtime,optional",
|
2020-12-13 15:38:40 +00:00
|
|
|
// gerweckUtil,
|
|
|
|
// scalaJava8,
|
2016-09-25 04:06:36 +00:00
|
|
|
scalaFx,
|
2018-01-11 05:32:08 +00:00
|
|
|
cats,
|
2016-09-25 04:06:36 +00:00
|
|
|
shapeless
|
|
|
|
),
|
|
|
|
|
2020-03-29 17:36:26 +00:00
|
|
|
libraryDependencies ++= javaFXModules.map( m =>
|
2020-12-13 15:38:40 +00:00
|
|
|
"org.openjfx" % s"javafx-$m" % "11.0.2" classifier osName
|
2020-03-29 17:36:26 +00:00
|
|
|
),
|
|
|
|
|
2016-09-25 04:06:36 +00:00
|
|
|
/* Akka dependencies */
|
2020-12-13 15:38:40 +00:00
|
|
|
// libraryDependencies ++= Seq (
|
|
|
|
// akkaActor % "optional",
|
|
|
|
// akkaStream % "optional",
|
|
|
|
// gerweckUtilAkka % "optional"
|
|
|
|
// )
|
2016-09-25 04:06:36 +00:00
|
|
|
)
|