Details
-
Task
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
None
-
-
DevOps: sprint 94, DevOps: Sprint 95
-
FOLIO DevOps
Description
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/
Quote from https://docs.sonarqube.org/latest/requirements/requirements/ :
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:
<maven.compiler.source>8</maven.compiler.source> <maven.compiler.target>8</maven.compiler.target>
I've successfully build RMB for Java 8 using openjdk11. The result jar can still run under JRE 8.
TestRail: Results
Attachments
Issue Links
- blocks
-
FOLIO-1772 Upgrade to OpenJDK 11
-
- Closed
-
-
FOLIO-2718 Add option to Jenkinsfile to select agent (for Java 11 update)
-
- Closed
-
-
OKAPI-879 Upgrade Okapi to OpenJDK 11
-
- Closed
-
-
RMB-328 Make RMB OpenJDK 11 compliant
-
- Closed
-
- duplicates
-
FOLIO-1940 Update Jenkins docker build image
-
- Closed
-
- relates to
-
CIRC-883 Upgrade to JDK 11
-
- Closed
-