https://kotlinlang.org logo
h

HankG

10/25/2020, 4:51 PM
FYI getting started with TornadoFX under JDK 11+ using the JavaFX Gradle plugin and TornadoFX 2.0 is so much easier than what I encountered previously trying to set it up with a local OpenJFX install
a

altavir

10/25/2020, 6:35 PM
There is a a bit of pitfall there. It will work only on the same platform, you are compiling it on.
h

HankG

10/25/2020, 6:45 PM
So would have to build on three separate machines?
for deployments?
I was so frustrated by the process without it that I gave up on using JavaFX and/or TornadoFX and did another project in Avalonia on the .NET stack
a

altavir

10/25/2020, 6:49 PM
Either that, or customize the build script to provide artifacts for specific platforms. So good news is that indeed it is quite easy to build JavaFX application with jmods and it will everywhere, because there are jmods for any platform. Bad news is that openjfx does not allow to select those dependencies and will use ones for your platform. Neutral news, you can either use CI to build for your platform or tweak gradle script to do it for you. All required artifacts are on mavenCentral.
h

HankG

10/25/2020, 6:49 PM
Yeah I'll explore that later
At least now bootstrapping is straight forward for once
a

altavir

10/25/2020, 6:50 PM
openjfx plugin is poorly maintained so I switched to my own plugin. Again, it is quite easy to do.
h

HankG

10/25/2020, 6:50 PM
It's all JavaFX problems not Tornado...I'm surprised that they haven't cleaned that up more after the JDK9+ era
which plugin are you using?
I'm about to write this up in a blog post
if there is a better one.
PS can I use Tornado 1.x guides and stuff for getting started with 2.0 or did a bunch of syntax etc change between the two?
a

altavir

10/25/2020, 6:52 PM
👍 1
11 Views