jenkinsci / prometheus-plugin

Jenkins Prometheus Plugin
https://plugins.jenkins.io/prometheus/
Apache License 2.0
184 stars 152 forks source link

Prepare to test Java 21 #571

Closed MarkEWaite closed 1 year ago

MarkEWaite commented 1 year ago

Prepare to test Java 21

Preparing to test with Java 21 as part of JENKINS-71800.

Changes proposed

Fix Java 21 tests by placing mockito before assertj

The bytebuddy mailing list 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 on both Java 17 and Java 21. They will need to be investigated and resolved in a separate pull request.

Use plugin BOM to provide metrics and rest API versions

Remove unnecessary java.level property

Supersedes or includes the following pull requests:

Checklist

Notify

@Waschndolos