Gradle bug with gradle 5.0 and ARM64e java with creating files
- On your M1 Mac (M1/M1 Pro/M1 Max) install JDK 11 which supports ARM64e (either from Homebrew or Azul)
- Run
./gradlew makeFile
You should have a file in ./build/files/testFile.txt
with some jibberish. That means it works
An exception and no file.
Googling didn't find any problem, exepct that M1 Macs (Apple Sillicon) is officially supported from Gradle 7.0 and up. Since some development workflows still depend on earlier versions of gradle (because legacy code), this means that M1 Macs must continue using x64 distributions of JDK via rosetta which kind of defeats the purpouse of the new, fast and efficient M1 chips.
So we must either spend lots of engineer hours to bring our projects to latest spec because of developer ergonomics or just use Rosetta.