Support run test at jdk21 (#3344)
Adjust the test logic, build with jdk17, and run with jdk21 (and the original 8, 11, 17)
This commit is contained in:
parent
8fef1b5eee
commit
03fe33ee0b
|
|
@ -15,7 +15,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
java: [8, 11, 17]
|
||||
java: [8, 11, 17, 21]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ jobs:
|
|||
with:
|
||||
java-version: 17
|
||||
distribution: 'temurin'
|
||||
cache: 'maven'
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
|
|
|
|||
14
pom.xml
14
pom.xml
|
|
@ -46,10 +46,10 @@
|
|||
|
||||
<!-- Test libs -->
|
||||
<junit.version>4.12</junit.version>
|
||||
<mockito.version>3.12.4</mockito.version>
|
||||
<mockito.version>4.11.0</mockito.version>
|
||||
<byte-buddy.version>1.14.10</byte-buddy.version>
|
||||
<assertj.version>3.12.1</assertj.version>
|
||||
<awaitility.version>3.1.5</awaitility.version>
|
||||
<powermock.version>2.0.0</powermock.version>
|
||||
|
||||
<!-- Build -->
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
|
@ -195,6 +195,16 @@
|
|||
<version>${mockito.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.bytebuddy</groupId>
|
||||
<artifactId>byte-buddy</artifactId>
|
||||
<version>${byte-buddy.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.bytebuddy</groupId>
|
||||
<artifactId>byte-buddy-agent</artifactId>
|
||||
<version>${byte-buddy.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.assertj</groupId>
|
||||
<artifactId>assertj-core</artifactId>
|
||||
|
|
|
|||
Loading…
Reference in New Issue