Use openjdk-11-jdk to build java/maven modules.
https://github.com/folio-org/folio-tools/blob/master/jenkins-slave-docker/Dockerfile currently uses openjdk-8-jdk (Java 8) to build java modules by running maven.
SonarQube Server running on https://sonarcloud.io/organizations/folio-org/projects requires openjdk-11-jdk (Java 11) to build using maven from October 2020 on: https://sonarcloud.io/documentation/upcoming/
The SonarQube Java analyzer is able to analyze any kind of Java source files regardless of the version of Java they comply to.
JDK 11 can build Java 8 and Java 11 code. Example:
https://github.com/SonarSource/sq-com_example_java-maven-travis made an build JDK upgrade from Java 8 to Java 11 and still builds java 8 code:
I've successfully build RMB for Java 8 using openjdk11. The result jar can still run under JRE 8.