Include JavaFX jmods (and remove forceMerge javaFX)#11170
Conversation
|
|
In 21u it's still present https://github.com/openjdk/jfx21u/blob/c2600685dbba9f33e01b9b0fcf2346df9b5e0011/modules/javafx.graphics/src/main/java/com/sun/glass/ui/Application.java#L262 |
|
Foojay Gradle Plugin seems to stick to Temurin: |
|
Also happens when using Zulu: |
|
Linux: |
|
Oh finally after 10 hours? |
|
| // but it was removed in the newer releases. | ||
| // The pom.xml associated with such a non-modular artifact does not mention that the artifact depends on the removed code | ||
| // (because the artifact was published when this code was still available in the JDK). | ||
| forceMerge "javafx" |
There was a problem hiding this comment.
this will not work this is intended for our merged module so that javafx is part of the merge module and can therefore be found
There was a problem hiding this comment.
you could try to add gemsfx to the merged module declaration
There was a problem hiding this comment.
Based on the comments above, I was thinking, it could help.
Two versions of module javafx.graphics found in /Users/runner/work/***/***/build/jlinkbase/jlinkjars (javafx-graphics-20-mac.jar and javafx.graphics.jar)
There was a problem hiding this comment.
This sounds like the downloading of javafx is wrong because we load it over our plugin and this will clash
There was a problem hiding this comment.
/home/runner/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-base/20/d82ec648e48647e10125ff0e3dce70348a80ac18/javafx-base-20-linux.jar
There was a problem hiding this comment.
This is likely the main culprit:
Lines 104 to 107 in b140d8a
There was a problem hiding this comment.
(I document more for myself than for others)
This is likely the main culprit:
No.
This points to JavaFX 22, not 22. The file included is /home/runner/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-base/20/d82ec648e48647e10125ff0e3dce70348a80ac18/javafx-base-20-linux.jar and thus is 20 (twenty) not 22 (twenty-two)
I replace version by sdk in the yaml workflow:
There was a problem hiding this comment.
I seee, but they are still duplicated on the classpath
There was a problem hiding this comment.
Only with the -20 or do you see other duplicates?
There was a problem hiding this comment.
Maybe beryx/badass-jlink-plugin#61 (comment) helps. Currently checking.
|
Both the sdk and the jmods are available at https://jdk.java.net/javafx23/. Unzip in |
Result: |
|
pipeline still failing? /home/runner/work/jabref/jabref/build/jlinkbase/tmpjars/org.jabref.merged.module/module-info.java:1113: error: module not found: javafx.base |
|
sure you did a ./gradlew clean before locally? |
|
No clean: BELLSOFT same error, Corretto: no error Now, trying clean locally. |
|
The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build. |


Fixes https://github.com/JabRef/jabref-issue-melting-pot/issues/412
After this is done:
Mandatory checks
CHANGELOG.mddescribed in a way that is understandable for the average user (if applicable)