From: Anil Belur Date: Tue, 5 Oct 2021 01:47:15 +0000 (+1000) Subject: Feat: Update default version of JDK to openjdk11 X-Git-Tag: v0.68.0~1 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=928def91ec7a5c862a7210f89532836898fe829b;p=releng%2Fglobal-jjb.git Feat: Update default version of JDK to openjdk11 JDK8 is soon going to be EOL by Mar 31, 2022. with most of the LF projects already on JDK11 (LTS), upgrade the default version to JDK11 (LTS). https://www.oracle.com/java/technologies/java-se-support-roadmap.html Issue-ID: RELENG-3978 Change-Id: I56359e72ef58602208242b076f35b19a1b7f5a1d Signed-off-by: Anil Belur --- diff --git a/docs/jjb/lf-maven-jobs.rst b/docs/jjb/lf-maven-jobs.rst index ffbbedc3..adb4ca01 100644 --- a/docs/jjb/lf-maven-jobs.rst +++ b/docs/jjb/lf-maven-jobs.rst @@ -23,7 +23,7 @@ Runs Sonar against a Maven project. :Required Parameters: - :java-version: Version of Java to execute Sonar with. + :java-version: Version of Java to execute Sonar with. (default: openjdk11) :mvn-version: Version of Maven to execute Sonar with. :mvn-settings: Maven settings.xml file containing credentials to use. @@ -34,13 +34,13 @@ Runs Sonar against a Maven project and pushes results to SonarCloud. :Required Parameters: - :java-version: Version of Java to execute Maven build. (default: openjdk8) + :java-version: Version of Java to execute Maven build. (default: openjdk11) :mvn-version: Version of Maven to execute Sonar with. :mvn-settings: Maven settings.xml file containing credentials to use. :sonarcloud-project-key: SonarCloud project key. :sonarcloud-project-organization: SonarCloud project organization. :sonarcloud-api-token: SonarCloud API Token. - :sonarcloud-java-version: Version of Java to run the Sonar scan. + :sonarcloud-java-version: Version of Java to run the Sonar scan. (default: openjdk11) lf-maven-build -------------- @@ -95,7 +95,7 @@ Setup Java alternatives for the Distro. :Required Parameters: :java-version: Version of Java to set as the default Java. - Eg. openjdk8 + Eg. openjdk11 lf-infra-sonatype-clm --------------------- @@ -135,7 +135,7 @@ Produces a CLM scan of the code into Nexus IQ Server. :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7) :build-timeout: Timeout in minutes before aborting build. (default: 60) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) - :java-version: Version of Java to use for the build. (default: openjdk8) + :java-version: Version of Java to use for the build. (default: openjdk11) :mvn-global-settings: The name of the Maven global settings to use for Maven configuration. (default: global-settings) :mvn-goals: The maven goals to perform for the build. @@ -192,7 +192,7 @@ in ``$WORKSPACE/{mvn-dir}/target/site/apidocs``. :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7) :build-timeout: Timeout in minutes before aborting build. (default: 60) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) - :java-version: Version of Java to use for the build. (default: openjdk8) + :java-version: Version of Java to use for the build. (default: openjdk11) :mvn-dir: Directory supplied as argument to -f option (default: '.') :mvn-global-settings: The name of the Maven global settings to use for Maven configuration. (default: global-settings) @@ -240,7 +240,7 @@ in ``$WORKSPACE/{mvn-dir}/target/site/apidocs``. :build-timeout: Timeout in minutes before aborting build. (default: 60) :deploy-path: The path in Nexus to deploy javadoc to. (default: $PROJECT/$STREAM) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) - :java-version: Version of Java to use for the build. (default: openjdk8) + :java-version: Version of Java to use for the build. (default: openjdk11) :mvn-dir: Directory supplied as argument to -f option (default: '.') :mvn-global-settings: The name of the Maven global settings to use for Maven configuration. (default: global-settings) @@ -304,7 +304,7 @@ This job uses the following strategy to deploy jobs to Nexus: one may want to provide more than 1 cron timer. (default: 'H H * * 0' to run weekly) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) - :java-version: Version of Java to use for the build. (default: openjdk8) + :java-version: Version of Java to use for the build. (default: openjdk11) :mvn-global-settings: The name of the Maven global settings to use for Maven configuration. (default: global-settings) :mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '') @@ -390,7 +390,7 @@ directory is then used later to deploy to Nexus. one may want to provide more than 1 cron timer. (default: '') :deploy-path: The path in Nexus to deploy javadoc to. (default: $PROJECT/$STREAM) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) - :java-version: Version of Java to use for the build. (default: openjdk8) + :java-version: Version of Java to use for the build. (default: openjdk11) :mvn-central: Set to ``true`` to also stage to **OSSRH**. This is for projects that want to release to Maven Central. If set, then also set the parameter ``ossrh-profile-id``. (default: false) @@ -490,7 +490,7 @@ multi-branch configuration. one may want to provide more than 1 cron timer. (default: 'H H * * 6' to run weekly) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) - :java-version: Version of Java to use for the Maven build. (default: openjdk8) + :java-version: Version of Java to use for the Maven build. (default: openjdk11) :mvn-global-settings: The name of the Maven global settings to use for Maven configuration. (default: global-settings) :mvn-goals: The maven goals to perform for the build. @@ -551,7 +551,7 @@ Verify job which runs mvn clean install to test a project build.. :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7) :build-timeout: Timeout in minutes before aborting build. (default: 60) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) - :java-version: Version of Java to use for the build. (default: openjdk8) + :java-version: Version of Java to use for the build. (default: openjdk11) :mvn-global-settings: The name of the Maven global settings to use for Maven configuration. (default: global-settings) :mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '') @@ -619,7 +619,7 @@ comment trigger. :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7) :build-timeout: Timeout in minutes before aborting build. (default: 60) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) - :java-version: Version of Java to use for the build. (default: openjdk8) + :java-version: Version of Java to use for the build. (default: openjdk11) :mvn-global-settings: The name of the Maven global settings to use for Maven configuration. (default: global-settings) :mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '') diff --git a/docs/jjb/lf-python-jobs.rst b/docs/jjb/lf-python-jobs.rst index daf755aa..be02609d 100644 --- a/docs/jjb/lf-python-jobs.rst +++ b/docs/jjb/lf-python-jobs.rst @@ -105,7 +105,7 @@ does not support multi-branch. :gerrit_nexusiq_triggers: Override Gerrit Triggers. :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) :github-url: URL for Github. (default: https://github.com) - :java-version: Version of Java to use for the scan. (default: openjdk8) + :java-version: Version of Java to use for the scan. (default: openjdk11) :nexus-iq-cli-version: Nexus IQ CLI package version to download and use. (default is a string like 1.89.0-02, see file lf-python-jobs.yaml) :nexus-iq-namespace: Insert a namespace to project AppID for projects that @@ -199,7 +199,7 @@ https://docs.sonarqube.org/display/PLUG/Python+Coverage+Results+Import :disable-job: Whether to disable the job (default: false) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) :github-url: URL for Github. (default: https://github.com) - :java-version: Version of Java to use for the build. (default: openjdk8) + :java-version: Version of Java to use for the build. (default: openjdk11) :mvn-global-settings: The name of the Maven global settings to use :mvn-goals: The Maven goal to run first. (default: validate) :mvn-version: Version of maven to use. (default: mvn35) diff --git a/docs/jjb/lf-whitesource-jobs.rst b/docs/jjb/lf-whitesource-jobs.rst index 9bee53f0..0280edd1 100644 --- a/docs/jjb/lf-whitesource-jobs.rst +++ b/docs/jjb/lf-whitesource-jobs.rst @@ -48,7 +48,7 @@ https://s3.amazonaws.com/unified-agent/wss-unified-agent.config :build-timeout: Timeout in minutes before aborting build. (default: 60) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) :java-opts: Java options. Example: -Xmx1024m - :java-version: Version of Java to use for the build. (default: openjdk8) + :java-version: Version of Java to use for the build. (default: openjdk11) :mvn-clean-install: Run maven clean install before the code scan. (default: false) :mvn-global-settings: The name of the Maven global settings to use for Maven configuration. (default: global-settings) diff --git a/jjb/lf-maven-jobs.yaml b/jjb/lf-maven-jobs.yaml index c63fe819..d4a5f083 100644 --- a/jjb/lf-maven-jobs.yaml +++ b/jjb/lf-maven-jobs.yaml @@ -140,7 +140,7 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - java-version: openjdk8 + java-version: openjdk11 mvn-global-settings: global-settings mvn-goals: clean install mvn-opts: "" @@ -310,7 +310,7 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - java-version: openjdk8 + java-version: openjdk11 mvn-dir: "." mvn-global-settings: global-settings mvn-opts: "" @@ -442,7 +442,7 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - java-version: openjdk8 + java-version: openjdk11 mvn-dir: "." mvn-global-settings: global-settings mvn-opts: "" @@ -567,7 +567,7 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - java-version: openjdk8 + java-version: openjdk11 mvn-global-settings: global-settings mvn-goals: clean deploy mvn-opts: "" @@ -831,7 +831,7 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - java-version: openjdk8 + java-version: openjdk11 maven-versions-plugin: false version-properties-file: version.properties mvn-central: false @@ -1126,7 +1126,7 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - java-version: openjdk8 + java-version: openjdk11 java-opts: "" mvn-global-settings: global-settings mvn-goals: clean install @@ -1455,7 +1455,7 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - java-version: openjdk8 + java-version: openjdk11 mvn-global-settings: global-settings mvn-goals: clean deploy mvn-opts: "" @@ -1691,7 +1691,7 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - java-version: openjdk8 + java-version: openjdk11 mvn-global-settings: global-settings mvn-goals: clean deploy mvn-opts: "" diff --git a/jjb/lf-python-jobs.yaml b/jjb/lf-python-jobs.yaml index 6fbd226f..b21f0b2b 100644 --- a/jjb/lf-python-jobs.yaml +++ b/jjb/lf-python-jobs.yaml @@ -83,7 +83,7 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - java-version: openjdk8 # Scanner is a jar + java-version: openjdk11 # Scanner is a jar nexus-iq-cli-version: 1.89.0-02 nexus-iq-namespace: "" # Recommend a trailing dash when set. Example: odl- pre-build-script: "# pre-build script goes here" @@ -240,7 +240,7 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - java-version: openjdk8 + java-version: openjdk11 mvn-global-settings: global-settings mvn-goals: validate mvn-opts: "" diff --git a/jjb/lf-whitesource-jobs.yaml b/jjb/lf-whitesource-jobs.yaml index 20a3db91..6b948616 100644 --- a/jjb/lf-whitesource-jobs.yaml +++ b/jjb/lf-whitesource-jobs.yaml @@ -95,7 +95,7 @@ git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" java-opts: "" - java-version: openjdk8 + java-version: openjdk11 mvn-clean-install: false mvn-global-settings: global-settings mvn-pom: "" diff --git a/releasenotes/notes/Update-default-version-openjdk11-ab96ef716f318be9.yaml b/releasenotes/notes/Update-default-version-openjdk11-ab96ef716f318be9.yaml new file mode 100644 index 00000000..86f0958e --- /dev/null +++ b/releasenotes/notes/Update-default-version-openjdk11-ab96ef716f318be9.yaml @@ -0,0 +1,9 @@ +--- +prelude: > + JDK8 is soon going to be EOL by Mar 31, 2022. with most of the LF projects + already using JDK11 (LTS), upgrade default version to JDK11 (LTS). +upgrade: + - | + Upgrade default version to JDK11 (LTS). + + https://www.oracle.com/java/technologies/java-se-support-roadmap.html