openjfx / javafx-gradle-plugin

Gradle plugin that makes it easy to work with JavaFX 11+
https://openjfx.io/
BSD 3-Clause "New" or "Revised" License
347 stars 59 forks source link

Plugin version 0.0.13 fails to build HelloFX on Windows on Arm64 #130

Open chirontt opened 1 year ago

chirontt commented 1 year ago

I've got an Arm64 machine running Windows 11 natively (Windows on Arm64). I've installed the OpenJDK for Windows on Arm64 from Microsoft, so Java is available natively on the machine (i.e. no emulation of x86_64 code.) Running the gradle --version command shows its environment info as followed:

------------------------------------------------------------
Gradle 7.5.1
------------------------------------------------------------

Build time:   2022-08-05 21:17:56 UTC
Revision:     d1daa0cbf1a0103000b71484e1dbfe096e095918

Kotlin:       1.6.21
Groovy:       3.0.10
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          17.0.4 (Microsoft 17.0.4+8-LTS)
OS:           Windows 11 10.0 aarch64

Using the openjfx/samples' HelloFX Gradle project, I have no problem in compiling and producing a hellofx.jar file, with the gradle jar command. Note that the HelloFX project's build.gradle file currently specifies version 0.0.9 of this plugin, like here, and it works.

When I change this plugin version to the latest version (0.0.13) in the build.gradle file, the gradle jar command fails:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\dev\javafx\samples\HelloFX\Gradle\hellofx\build.gradle' line: 3

* What went wrong:
An exception occurred applying plugin request [id: 'org.openjfx.javafxplugin', version: '0.0.13']
> Failed to apply plugin 'org.openjfx.javafxplugin'.
   > Could not create an instance of type org.openjfx.gradle.JavaFXOptions.
      > Unsupported JavaFX platform found: 'windows-aarch_64'! This plugin is designed to work on supported platforms only.Current supported platforms are 'linux-x86_64', 'linux-aarch_64', 'windows-x86_64', 'osx-x86_64', 'osx-aarch_64'.