scalafx-utils/build.sbt
Rohan Sircar 7484570e40 Updated project further
Updated scala version to 2.13.4
Compiles to Java 11 now
Updated sbt to 1.4.3
Updated scalafx version to 14
Removed unneeded dependencies
Removed Akka code
Added lint and fatal warnings scalac options
Added parantheses to side effecting methods
Added >> and << methods to observables
2020-12-13 21:08:40 +05:30

48 lines
1.3 KiB
Scala

import Dependencies._
import Helpers._
import Resolvers._
// 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")
lazy val root = (project in file ("."))
.enablePlugins(BasicSettings, SiteSettingsPlugin)
.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",
// gerweckUtil,
// scalaJava8,
scalaFx,
cats,
shapeless
),
libraryDependencies ++= javaFXModules.map( m =>
"org.openjfx" % s"javafx-$m" % "11.0.2" classifier osName
),
/* Akka dependencies */
// libraryDependencies ++= Seq (
// akkaActor % "optional",
// akkaStream % "optional",
// gerweckUtilAkka % "optional"
// )
)