Uploaded image for project: 'FOLIO'
  1. FOLIO
  2. FOLIO-2637

SPIKE: Add Java 11 support to Jenkins Pipelines.

    XMLWordPrintable

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

            Activity

              People

                ian Ian Hardy
                Taras_Spashchenko Taras Spashchenko
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases