Thanks for the first, but the seccond stills do not compile. The whole code is:
Of course it does not.
I already explained why and three ways to fix it.
You are not configuring the task called run but you are calling this Kotlin stdlib function: run - Kotlin Programming Language
And thanks for the hint to the work from jjohannes. The whole JavaFX stuff is really a mess and controlsfx beats it in different worse kinds, very good that somebody did that work and turned this in a better usable way (even I still hate JavaFX and think about to change to another gui tool set).
Hm…if I read this again, I’m too.
Sorry that I missed this, must be the result of a mix of lack of concentration and some frustration about gradle. I hope you does not misunderstood that as contempt.
I roamed about some git and gradle pages to get an idea how the fix works, but I still have no idea what to do now.
The most easy thing was to update the openjfx plugin to v0.1.0, I think I get it, but what to do now with it?
Until now, I ignored the module system, as I started the project with Java 8 some years ago, the module system came later with Java 9. That’s why I
because I started without and had no need to modularize anything later. After reading something about the module system - I did never care about that - it is not clearer for me. jjohannes and other guys often write about some metadata rules, is it meaningfull here or am I wrong here?
You should not need to do anything and should be able to even remove that --add-opens line.
JPMS is good and you should really consider using it if you are not bound to Java 8.
It improves JAR hell and introduces some stricter encapsulation of libraries on a systematic level.
As you upgraded the OpenJFX plugin to 0.1.0, you are not automatically using the2 org.javamodularity.moduleplugin anymore which interferes with the built-in JPMS support and you should most probably not get that error anymore that the --module-path option is used without anything put to the module path.
And no, the JavaFX plugin does not overwrite any module-info.java file.
It would be very nice if it works and I do not need to do anything…now I know why I searched any how-to-use-docu for no result.
After reading something about it, it may be great, but I do not need it. Nevertheless, I just started with Java 8 but switched to a higher version later. Not sure abou it, but I think it is on Java 16 now.