sbt-javafx is a plugin for SBT (Simple Build Tool) for packaging JavaFX applications.
Add an .sbt
file (e.g. plugins.sbt
) to the project's project
directory, with the following content:
addSbtPlugin("no.vedaadata" %% "sbt-javafx" % "0.7")
A minimal .sbt
build file (e.g. build.sbt
) could then look like this:
name := "my-javafx-application"
jfxSettings
JFX.mainClass := Some("mypackage.MyJavaFXApplication")
To package the application, simply run the package-javafx
task.
More details: