Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

setting sbt scalafx project

javafx is now in oracle-jdk.

scalafx gives delicious examples in its repository

The main questions I'm not being able to answer is "How to get started with scalafx"?

How can I add scalafx libary dependencies on my sbt project?

like image 593
ayvango Avatar asked Sep 20 '12 10:09

ayvango


People also ask

How do we specify library dependencies in sbt?

The libraryDependencies key Most of the time, you can simply list your dependencies in the setting libraryDependencies . It's also possible to write a Maven POM file or Ivy configuration file to externally configure your dependencies, and have sbt use those external configuration files.

How do I specify sbt?

Create or open your sbt project. In the Project tool window, in the source root directory, locate the build. properties file and open it in the editor. In the editor explicitly specify the version of sbt that you want to use in the project.


1 Answers

ScalaFX is soon to reach a stable release state. As I write this you can find the published artifacts for version 1.0.0-M2 on the maven central repo

Adding the dependency to your sbt build should suffice

libraryDependencies += "org.scalafx" %% "scalafx" % "1.0.0-M2"
like image 192
pagoda_5b Avatar answered Sep 21 '22 00:09

pagoda_5b