Repository navigation
JavaFX Workaround: Set javafx.platform property in scripts - #3456
Conversation
Occurs with Maven 3.9.7, fixed with Gluon JavaFX 23-ea+20, that contains a fixed parent POM See https://mail.openjdk.org/pipermail/openjfx-dev/2024-May/047279.html
WalkthroughThe changes across multiple GitHub Actions workflow files involve adding the Changes
Sequence Diagram(s)No sequence diagrams are necessary as the changes are straightforward modifications to build commands. Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
dist/mac/dmg/build.shis excluded by!dist/**
Files selected for processing (1)
- .github/workflows/mac-dmg.yml (2 hunks)
Files skipped from review due to trivial changes (1)
- .github/workflows/mac-dmg.yml
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (2)
dist/linux/appimage/build.shis excluded by!dist/**dist/win/build.ps1is excluded by!dist/**
Files selected for processing (7)
- .github/workflows/appimage.yml (1 hunks)
- .github/workflows/build.yml (1 hunks)
- .github/workflows/debian.yml (1 hunks)
- .github/workflows/dependency-check.yml (1 hunks)
- .github/workflows/pullrequest.yml (1 hunks)
- .github/workflows/release-check.yml (1 hunks)
- .github/workflows/win-exe.yml (3 hunks)
Files skipped from review due to trivial changes (3)
- .github/workflows/build.yml
- .github/workflows/dependency-check.yml
- .github/workflows/pullrequest.yml
Additional comments not posted (5)
.github/workflows/release-check.yml (1)
63-63: The addition of-Djavafx.platform=linuxcorrectly specifies the JavaFX platform for Linux, aligning with the PR's objective to address the JavaFX bug..github/workflows/debian.yml (1)
56-56: The addition of-Djavafx.platform=linuxin the Maven command ensures that the JavaFX platform is correctly specified for Linux builds..github/workflows/appimage.yml (1)
71-71: The addition of-Djavafx.platform=linuxin the Maven command ensures that the JavaFX platform is correctly specified for Linux builds..github/workflows/win-exe.yml (2)
80-80: The addition of-Djavafx.platform=winin the Maven command ensures that the JavaFX platform is correctly specified for Windows builds.
202-202: The addition of-Djavafx.platform=winin the Maven command for generating licenses ensures that the JavaFX platform is correctly specified for Windows builds.
javafx.platform property in scripts
|
Is it planned to also add it to our other flavors like e.g. https://github.com/cryptomator/aur/blob/master/PKGBUILD#L44 or https://github.com/cryptomator/flathub/blob/master/org.cryptomator.Cryptomator.yaml#L86 to have everywhere the same build flags? |
|
I extendend the scope of this PR to fix the issue for all workflows, because i'm sure Maven will be updated also on other systems. Note, that setting the |
|
@SailReal Since we can control there the maven version, it is not necessary. Only if we update maven to version 3.9.7 or higher the property must be set |
|
@purejava Thanks for the research and PR! I extended the PR to not stumble into this problem on other platforms. |
|
In Archlinux we use the maven dependency from Arch packages so we are not in control of its version and it is already 3.9.7 (https://archlinux.org/packages/extra/any/maven). |
You are right @SailReal. I gave it a test on my Arch linux box and it bites us there too. I'll prepare a quick PR within no time and test Flatpak too. |
I took a look at the flatpaked Cryptomator, but that wouldn't have been necessary, as @infeo pointed out earlier. We control the Maven version there: url: https://dlcdn.apache.org/maven/maven-3/3.9.5/binaries/apache-maven-3.9.5-bin.tar.gz |
Fixes #3453