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:
570
569
568
561
Checklist
[x] Includes tests covering the new functionality?
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:
570
569
568
561
Checklist
Notify
@Waschndolos