kavedaa / sbt-javafx

JavaFX plugin for SBT
36 stars 6 forks source link

Trouble with settings in sub-project #19

Open tiagoj opened 10 years ago

tiagoj commented 10 years ago

When I add JFX.(whatever) settings in my build.sbt sub-project definition it doesn't have any effect.

Here is my sub-project def:

lazy val fxBQuote = project.in( file("sub_fxBQuote") ) .settings(jfxSettings: ) .settings(mySettings: ) .settings( version := "0.0.3-alpha", JFX.mainClass := Some("com.kybios.fx.bQuote.gui.Main"), JFX.addJfxrtToClasspath := true, libraryDependencies ++= Seq( scalatest, jUnit, simpleJson ) ) .dependsOn(product)

After a reload, the version and library deps get picked up as expected, but not the JFX settings.

show javafxAddJfxrtToClasspath [info] false show javafxMainClass [info] None

I have tried the definition with both a build.sbt and a build.scala project definition with the same result.

I am no SBT pro, so I may be missing something obvious, I would appreciate any pointers.

kavedaa commented 9 years ago

Unfortunately I don't know why, but I'm also not sure if it makes sense to use the plugin on a sub-project. Could you describe your use case?