Older default java version used with Azure devops Hosted agent

The problem with this solution is you are just swapping one warning for another.

You then get warnings about an illegal reflective access operation:

*Edit linked to the wrong thread