New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packaging multi-project applications? #12
Comments
I'm having this problem too. @TomasMikula did you find any workaround? I have my JavaFX code in one of the sub projects and am trying to pull in sibling project. When I do a Looking into hacking up my |
I think I have a partial work around, which is to set |
Correction! Don't set |
Hi Simeon, I resorted to splitting my application into separate sbt projects and have the subprojects as normal JAR dependencies of the main project. |
Hi Metasim, I was wondering if you could share some though on a fix you did on sbt-fx. I was wondering why do you call your workaround a "partial workaround". That is, what is your overall understanding of the problem since then? I simply would appreciate if you could share your conclusions on using your workaround, if you see some limitation to it. Most importantly if exportJars:=true has cause some other issue, implication, slowdown and etc... Many thanks for your understanding, Maat |
I'm sorry, but I haven't looked at this yet. If Simeon's solution works, it might not be necessary to do anything with the plugin. |
Hi acapo, I would like to know what is the implication of using exportjar:=true in the overall compilation process ? I mean I know that it packages thing but is that all in terms of consequences? |
Hmmm... trying to remember.... I think I considered it a partial fix because a) it requires the non-packaging module to build the jar for integration with other modules, even if you're not building packaging (e.g. just running tests), and 2) I think the correct solution would be for the plugin to more deeply analyze the SBT dependency tree and convert high-level module dependencies into either a synthesized artifact combining and packaging them all (meh) or depending on the package task output from those modules instead. That said, it's been a while and my memory is fuzzy, so take this with a grain of salt. |
Ok git, Just for the record, did you keep on using it, you resorted in splitting Many thanks, M On Wed, Aug 13, 2014 at 3:23 PM, Simeon H.K. Fitch <notifications@github.com
|
Since I had the same issue, I have implemented a possible fix here: https://github.com/guilgaly/sbt-javafx/tree/internal-dependencies-fix What I do is that I add a fx:fileset in fx:jar for each element in the project's internalDependencyClasspath. So all files which are added to the classpath from other sub-projects get packaged in the jar, just like the files from the main project itself. It seems reasonable to me - but then, I'm entirely new to both SBT plugins and JavaFX application packaging, so... Do you see any drawback to this solution? If it seems fine, I'll submit a pull request. |
Is it possible to package a multi-project application?
My
build.sbt
starts like thisWhen I package the root project using
sbt package-javafx
, JAR files of the nested projects are not included in the bundle.The text was updated successfully, but these errors were encountered: