Closed raddatzk closed 2 years ago
Adoptium only offers x64 for Java 8 and macOS, which means that Gradle's toolchain support cannot automatically download an appropriate JDK 8 for you.
So you have to manually download and install an aarch64 compatible JDK 8 for macOS for the build to work.
I got this from Zulu, and it works fine.
openjdk version "1.8.0_342"
OpenJDK Runtime Environment (Zulu 8.64.0.15-CA-macos-aarch64) (build 1.8.0_342-b07)
OpenJDK 64-Bit Server VM (Zulu 8.64.0.15-CA-macos-aarch64) (build 25.342-b07, mixed mode)
Leaving this ticket open for the time being, since we should update the README to reflect this.
FWIW There are plans for Gradle to support using the foojay Disco API instead of the one from Adoptium which will allow provisioning aarch64-compatible JDKs automatically.
Leaving this ticket open for the time being, since we should update the README to reflect this.
I am using the current main branch on commit 4a87980a
Steps to reproduce
Take an Apple Silicon Device and try
./gradlew clean assemble
, it will produce the following output:Seems like spotbugs is trying to get aarch64 version of jdk8, but this is not available. Would it be possible to set the platform to amd64?
Context