Set the environment variable CC_JAVA_VERSION
to the version you want.
We follow the official Java roadmap by supporting both LTS and latest non-LTS versions.
We are using OpenJDK distribution for mentioned Java versions.
Every non-LTS versions where Premier support ends will be removed without warning as you should be able to switch to the next available non-LTS version without any trouble.