Replies: 1 comment
-
|
If you would like to port an existing JavaFX app to WebFX, you need to create a new WebFX project, which relies on Maven. Please note that you don't need to write the POMs yourself, because the WebFX CLI generates them all automatically for you, which frees developers from a big hassle. Your main focus will be on your Java sources (just a few adjustments in the webfx.xml - also initially generated by the CLI - may eventually be required). As opposed to other standard libraries, WebFX libraries are made of hundreds of separate small Java modules (see for example WebFX Platform, WebFX Extras and WebFX Stack) that's why it's necessary to have a tool like the webfx CLI to generate the build chain (it wouldn't be manageable to write them manually - see for example the size of this POM). There are 2 main reasons for this approach:
Of course Java developers have their preferences (ex: Gradle over Maven) especially when they have to write those build files themselves, but since this is not the case with WebFX, I don't think imposing Maven is a big issue here. If for some reasons it is (I would be interested to know them), I'm happy to accept a PR on the WebFX CLI to generate a Gradle build chain as an alternative to the default Maven build chain. But that's probably a big work for a contributor. If you are still struggling to port your JavaFX app to WebFX, fell free to ask support on the WebFX-#general chat channel on Discord. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What if I have an existing JavaFX application which is gradle based. I tried to follow this along but had a hard stop as creating a matching POM for given gradle build was complicated.
Wondering if anyone has faced this?
Beta Was this translation helpful? Give feedback.
All reactions