sbt-javafx icon indicating copy to clipboard operation
sbt-javafx copied to clipboard

JavaFX plugin for SBT

sbt-javafx

sbt-javafx is a plugin for SBT (Simple Build Tool) for packaging JavaFX applications.

Quick start

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:

  • Enabling the plugin
  • Customizing paths to necessary JavaFX files
  • Running from within SBT
  • Packaging
  • Other settings
  • Advanced features
  • Examples