It would be good to see a cohesive and consistent map of pre-installed JDKs across GitHub Actions and Azure Pipelines virtual environments / hosted build agents.
As of December 2019, these were the pre-installed versions and what was the default one:
Azure Pipelines Image Name | Image version | Java versions installed | Default Java
-- | -- | -- | --
Hosted Windows 2019 with VS2019 | v20191009.1 | 1.7.0_232, 1.8.0_222, 11.0.4 | 1.8.0_222
Hosted VS2017 | v20191009.1 | 1.7.0_232, 1.8.0_222, 11.0.4 | 1.8.0_222
Hosted Ubuntu 1804 | v20191025.1 | 1.7.0_242, 1.8.0_232, 11.0.5, 12.0.2 | 12.0.2
Hosted Ubuntu 1604 | v20191025.1 | 1.7.0_242, 1.8.0_232, 11.0.5, 12.0.2 | 12.0.2
Hosted macOS | macOS-10.14 | 1.7.0_242, 1.8.0_232, 11.0.5, 12.0.2, 13.0.1 | 13.0.1
Hosted macOS High Sierra | macOS-10.13 | 1.7.0_242, 1.8.0_232, 11.0.5, 12.0.2, 13.0.1 | 13.0.1
Thank you
@maxim-lobanov the links you provide point to bullet lists that do not provide consistent defaults. In fact, the only image that states which JDK is the default is macOS image.
Plus, images have different defaults. I know that on macOS, default is Java 8, while on Ubuntu the default is not Java 8.
I'd appreciate a better resolution than just closing this issue because there is a bullet list somewhere.
Thank you for sharing concern. That makes sense to put information about default versions to the docs.
I'd also very much like to see a single unique version being the default across all images. Right now, it is not consistent.
The latest LTS release is Java 11, fwiw, and a vendor-neutral build would be very much preferred, such as AdoptOpenJDK.
We have updated the information about default version of JDK. Images with new docs will be rolled out around next week.
As for the setup the same default version of JDK for all images, could you please open a separate issue for it.
Recent change to the java-tools.sh file indicates that JDK 12 is the default, but the script sets JAVA_HOME to JDK 8. Shouldn't the script set JAVA_HOME to the default JDK?
@nikita-bykov Java 12 is not LTS. We on the Java team at Microsoft strongly advise to set an LTS as the default across all agents. Currently, the latest LTS is Java 11.
Fixed default label on Ubuntu. It was my typo and thank you for your report!
As for the suggestion to set the LTS version (Java 11) as default consistently across all images, we like this suggestion but worry about regression for some customers because if we update default Java from 8 to 11, their builds could be broken.
Probably, the appropriate communication is required here. That is the reason why we would like to track this request as a separate issue.
Ok, I'll submit a new issue then. Thanks.
Most helpful comment
Fixed default label on Ubuntu. It was my typo and thank you for your report!
As for the suggestion to set the LTS version (Java 11) as default consistently across all images, we like this suggestion but worry about regression for some customers because if we update default Java from 8 to 11, their builds could be broken.
Probably, the appropriate communication is required here. That is the reason why we would like to track this request as a separate issue.