-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Provide option/configuration for used architecture #234
Comments
If you set your But with Node 12 being end of life you really should consider upgrading the node version being used And the section of the code that'd need to change to support this is... messy. Although if someone were to make a sneaky PR that adds a property to support something like: |
Thank you for the answer
Hmm, may work. But I want to keep Java as
I know, but sometimes it is not up to me to decide about that. 😆
Have to find out what that means 😁 |
In my project, we are at Node 10, and I'm not sure they would let me upgrade at all. @giftkugel , Thanks for raising this! I am also of the same opinion. Don't want to change my JVM, but only get node running. Did you manage to find out what the below means?
|
In Gradle 6+ it's ProviderFactory.gradleProperty(String) and in Gradle 5 it's Project.property(String) |
@thouseef I was able to force an Intel version of Node on my M1 Mac by using the
For example: But this system property is also. used by Gradle ... so Gradle then also treats my System as x86_64 ./gradlew --no-daemon --version -Dos.arch='x86_64'
------------------------------------------------------------
Gradle 7.2
------------------------------------------------------------
Build time: 2021-08-17 09:59:03 UTC
Revision: a773786b58bb28710e3dc96c4d1a7063628952ad
Kotlin: 1.5.21
Groovy: 3.0.8
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.15 (Azul Systems, Inc. 11.0.15+10-LTS)
OS: Mac OS X 12.4 x86_64 Without that system property ./gradlew --no-daemon --version
------------------------------------------------------------
Gradle 7.2
------------------------------------------------------------
Build time: 2021-08-17 09:59:03 UTC
Revision: a773786b58bb28710e3dc96c4d1a7063628952ad
Kotlin: 1.5.21
Groovy: 3.0.8
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.15 (Azul Systems, Inc. 11.0.15+10-LTS)
OS: Mac OS X 12.4 aarch64 |
Right now the plugin tries to resolve the current system and the used architecture on its own. That's okay for most use cases.
With the new Apple M1 silicon it is not that easy to determinate the correct architecture which should be used. e.g. the plugin may choose the wrong one.
For example, I want to use
darwin-x64
for node<16 anddarwin-arm64
for node>=16. But the Plugin will try to loaddarwin-arm64
even for node<16 as long as I don't use the workaround described here: #154 (comment)The workaround with an extra terminal started with Rosetta2 does not work for terminals inside IDEs, or Gradle executed outside of a terminal.
I would love to have an expert option/configuration to provide the architecture which should be used on my own.
Examples
Of course a configuration for node=12 and arm64 would fail again, because there is no NodeJS 12.x for ARM architecture available.
The
arch
option/configuration should be optional and if used it should prevent the architecture to be detected by the pluginThe text was updated successfully, but these errors were encountered: