From 3dc4362510eef55e02f42063a3de816955d74129 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Sat, 14 Oct 2023 23:32:20 -0600 Subject: [PATCH] Prepare to test Java 21 (#571) * Bump actions/checkout from 4.0.0 to 4.1.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.0.0...v4.1.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Bump org.jenkins-ci.plugins:plugin from 4.73 to 4.74 Bumps [org.jenkins-ci.plugins:plugin](https://github.com/jenkinsci/plugin-pom) from 4.73 to 4.74. - [Release notes](https://github.com/jenkinsci/plugin-pom/releases) - [Changelog](https://github.com/jenkinsci/plugin-pom/blob/master/CHANGELOG.md) - [Commits](https://github.com/jenkinsci/plugin-pom/compare/plugin-4.73...plugin-4.74) --- updated-dependencies: - dependency-name: org.jenkins-ci.plugins:plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Bump io.jenkins.tools.bom:bom-2.387.x Bumps [io.jenkins.tools.bom:bom-2.387.x](https://github.com/jenkinsci/bom) from 2446.v2e9fd3b_d8c81 to 2496.vddfca_753db_80. - [Release notes](https://github.com/jenkinsci/bom/releases) - [Commits](https://github.com/jenkinsci/bom/commits) --- updated-dependencies: - dependency-name: io.jenkins.tools.bom:bom-2.387.x dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Bump io.jenkins.plugins:code-coverage-api from 4.7.0 to 4.8.0 Bumps [io.jenkins.plugins:code-coverage-api](https://github.com/jenkinsci/code-coverage-api-plugin) from 4.7.0 to 4.8.0. - [Release notes](https://github.com/jenkinsci/code-coverage-api-plugin/releases) - [Changelog](https://github.com/jenkinsci/code-coverage-api-plugin/blob/master/CHANGELOG-old.md) - [Commits](https://github.com/jenkinsci/code-coverage-api-plugin/compare/v4.7.0...v4.8.0) --- updated-dependencies: - dependency-name: io.jenkins.plugins:code-coverage-api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Remove unnecessary java.level property * Use plugin BOM to provide metrics and rest API versions * Fix Java 21 tests by placing mockito before assertj https://groups.google.com/g/byte-buddy/c/H3auRC-SRts/m/7NCRN2wAAwAJ notes that the version of bytebuddy in assertj does not support Java 21 while the version of bytebuddy in mockito supports Java 21. Load mockito first so that the newer version of bytebuddy is used for the tests. This change is necessary but not sufficient to pass the tests on Java 21. The tests run much better on Java 21 with this change, but there are still two tests that fail. They will need to be investigated and resolved in a separate pull request. --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/codacy-analysis.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- pom.xml | 33 +++++++++++---------------- 3 files changed, 15 insertions(+), 22 deletions(-) diff --git a/.github/workflows/codacy-analysis.yml b/.github/workflows/codacy-analysis.yml index e97b6cd6f..5f98c35e0 100644 --- a/.github/workflows/codacy-analysis.yml +++ b/.github/workflows/codacy-analysis.yml @@ -21,7 +21,7 @@ jobs: steps: # Checkout the repository to the GitHub Actions runner - name: Checkout code - uses: actions/checkout@v4.0.0 + uses: actions/checkout@v4.1.0 # Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis - name: Run Codacy Analysis CLI diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 533bed057..7016c1eb3 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4.0.0 + uses: actions/checkout@v4.1.0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/pom.xml b/pom.xml index 5b4370876..5864bafc9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.jenkins-ci.plugins plugin - 4.73 + 4.74 @@ -19,15 +19,12 @@ 2.387.3 - 11 0.16.0 2.0.9 0.10 - 4.7.0 - 4.2.18-442.v02e107157925 - 2.21 + 4.8.0 3.24.2 1.1.1 @@ -84,7 +81,7 @@ io.jenkins.tools.bom bom-2.387.x - 2446.v2e9fd3b_d8c81 + 2496.vddfca_753db_80 import pom @@ -137,14 +134,22 @@ org.jenkins-ci.plugins metrics - ${metrics.version} org.jenkins-ci.plugins.pipeline-stage-view pipeline-rest-api - ${pipeline-rest-api.version} + + + + + org.mockito + mockito-core + test + + + org.assertj assertj-core @@ -157,18 +162,6 @@ ${JUnitParams.version} test - - org.mockito - mockito-core - ${mockito.version} - test - - - - - - - com.github.stefanbirkner system-lambda