Hi all,
when trying to build gms locally on an M1 Mac, a colleague of mine faced an issue with the gradle java plugin. It tries to download JDK 8 from Adoptium which does not offer an M1 version.
Url in question is
https://api.adoptium.net/v3/binary/latest/8/ga/mac/aarch64/jdk/hotspot/normal/eclipse
See also the discussion here
https://github.com/gradle/gradle/issues/19140 - it doesn't seem like it will be supported anytime soon.
This lead to an experiment, where I changed the JDK version requested by Datahub to 11 (changing all instances of JavaLanguageVersion.of(8) to JavaLanguageVersion.of(11) throughout the project) - which enabled us to successfully build Datahub GMS, Upgrade as well as MAE/MCE consumers.
So now I wonder if there's a reason why Datahub is still pinned to Java version 8? Did I miss something?
Otherwise I would open a small PR to update this to 11.
Any thoughts?