dotnet / dnceng

.NET Engineering Services
MIT License
25 stars 19 forks source link

Install JDK 11 on Linux and MacOS images #3093

Open sebastienros opened 4 months ago

sebastienros commented 4 months ago

The Windows images have JDK 11.0.23 installed but the Linux and MacOS ones have JDK 8. As I am trying to get the aspnet repository to build successfully when users have a more recent version locally, we need to bump Gradle version in our script, but the new version then doesn't support JDK 8 anymore.

For this reason, and also in order to have some consistency (to reduce potential custom steps for each OS target) I'd like to have JDK 11 also available on Linux and MacOS images. NB: we should check if the distribution we use for JDK 8 is still supported (released in 2018)).

Release Note Category

sebastienros commented 1 month ago

Has there been any changes on the available versions of the JDK?

BrennanConroy commented 2 weeks ago

Can we install a more recent version of the JDK? 11 is very old and while it is still under extended support, we really should be using a more modern version like 21 (LTS).

dougbu commented 2 weeks ago

I feel this is now two separate requests:

  1. provide consistent JDK versions on Windows and non-Windows machines we maintain
  2. add another more recent JDK version (if they can be installed side-by-side) or bump the single version up

@BrennanConroy could you move (2) into a new issue and provide a bit more background e.g. EOL dates and your preferred timeline❓

sebastienros commented 2 weeks ago

I am fine if

If it's less work to go to 21 first then let's do that.