Skip to content

Commit 03fe33e

Browse files
authored
Support run test at jdk21 (#3344)
Adjust the test logic, build with jdk17, and run with jdk21 (and the original 8, 11, 17)
1 parent 8fef1b5 commit 03fe33e

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
java: [8, 11, 17]
18+
java: [8, 11, 17, 21]
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v4

.github/workflows/codeql-analysis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
with:
5454
java-version: 17
5555
distribution: 'temurin'
56+
cache: 'maven'
5657

5758
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
5859
# If this step fails, then you should remove it and run the build manually (see below)

pom.xml

+12-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646

4747
<!-- Test libs -->
4848
<junit.version>4.12</junit.version>
49-
<mockito.version>3.12.4</mockito.version>
49+
<mockito.version>4.11.0</mockito.version>
50+
<byte-buddy.version>1.14.10</byte-buddy.version>
5051
<assertj.version>3.12.1</assertj.version>
5152
<awaitility.version>3.1.5</awaitility.version>
52-
<powermock.version>2.0.0</powermock.version>
5353

5454
<!-- Build -->
5555
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -195,6 +195,16 @@
195195
<version>${mockito.version}</version>
196196
<scope>test</scope>
197197
</dependency>
198+
<dependency>
199+
<groupId>net.bytebuddy</groupId>
200+
<artifactId>byte-buddy</artifactId>
201+
<version>${byte-buddy.version}</version>
202+
</dependency>
203+
<dependency>
204+
<groupId>net.bytebuddy</groupId>
205+
<artifactId>byte-buddy-agent</artifactId>
206+
<version>${byte-buddy.version}</version>
207+
</dependency>
198208
<dependency>
199209
<groupId>org.assertj</groupId>
200210
<artifactId>assertj-core</artifactId>

0 commit comments

Comments
 (0)