frontend-gradle-plugin: Execution failed for platform aarch64
Hi everyone,
first of all thx for this great plugin.
I just tried to build my current project on my new MBP with M1 chip. It’s a multi module Gradle projects containing a Spring Boot backend and Vue.js 2 frontend module. Unfortunately the build fails with the following error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':frontend:installNode'.
> org.siouan.frontendgradleplugin.domain.exception.UnsupportedPlatformException: This platform is not supported yet: Platform {jvmArch=aarch64, osName=Mac OS X, environment=Environment {nodeInstallDirectory=null, yarnInstallDirectory=null}, systemProxySettings=SystemProxySettings {httpProxyHost=null, httpProxyPort=80, httpsProxyHost=null, httpsProxyPort=443, nonProxyHosts=[local, *.169.254/16, *.local, 169.254/16]}}
OS Mac Os X Big Sur 11.2 Gradle Version 6.7.1 Java Version
openjdk 15.0.2 2021-01-19
OpenJDK Runtime Environment Zulu15.29+15-CA (build 15.0.2+7)
OpenJDK 64-Bit Server VM Zulu15.29+15-CA (build 15.0.2+7, mixed mode)
Is there any chance this will be gonna be fixed soon?
Cheers, Alexander
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (12 by maintainers)
Commits related to this issue
- Fixed #148 — committed to siouan/frontend-gradle-plugin by v1nc3n4 3 years ago
- Fixed #148 (#159) — committed to siouan/frontend-gradle-plugin by v1nc3n4 3 years ago
- Fixed #148 — committed to siouan/frontend-gradle-plugin by v1nc3n4 3 years ago
- Fixed #148 — committed to siouan/frontend-gradle-plugin by v1nc3n4 3 years ago
- Fixed #148 (#160) — committed to siouan/frontend-gradle-plugin by v1nc3n4 3 years ago
- add retry mechanism to downloads (#200) * Fixed line endings. * Fixed Gradle Wrapper mode. * Fixed website code tabs. * Fixed website code tabs. * Fixed website code tabs. * Fixed webs... — committed to siouan/frontend-gradle-plugin by thebignet a year ago
- feat: add support for retryable download of Node.js distribution (#202) * add retry mechanism to downloads (#200) * Fixed line endings. * Fixed Gradle Wrapper mode. * Fixed website code tabs... — committed to siouan/frontend-gradle-plugin by v1nc3n4 10 months ago
- feat: backport changes from branch 7.1-jdk17 (#204) * build: initialize JDK 17 build * fix: remove Gradle Enterprise test distribution * refactor: move immutable classes to records * doc: fi... — committed to siouan/frontend-gradle-plugin by v1nc3n4 10 months ago
Ok, now I got it. I just forgot about the version number in the gradle settings. So setting this to 16.1.0 the build runs!
@apo1967 FYI, if you are just trying to build your project on your workstation, you may install node on your own, using homebrew for example. It seems to be a confirmed workaround. Then, if you set the
nodeDistributionProvidedproperty totrue, the plugin can rely on executables found in the PATH, or pick the one located in the directory pointed by thenodeInstallDirectoryproperty. The official documentation shall help you to do that. Feel free to come back here for any news or questions.Well no, sorry for the inconvenience 😞. Of course I’m curious to know if one distribution or the other works on your system. MBP is built over an ARM64 architecture if I understand well, and that may be compatible. But Node’s website states the ARMv8 distribution is for Linux. I wonder also if the Mac OS Darwin distribution may work 🤔. But these considerations are not viable in the long term, and I don’t think it’s a good idea the plugin tries to use another distribution in the mean time.
Node team seems to be working on it actually, I will follow closely this point and provide a new release as soon as a compatible distribution is published. And thanks a lot for your help of course!
That’s perfect, thank you. The fact that the issue is still there when forcing the URL means there is another bug because it should work. I create another issue for this one. It shall be fixed this week.