29
29
strategy :
30
30
matrix :
31
31
os : [ ubuntu-latest ]
32
- java : [ '11 ' ]
32
+ java : [ '21 ' ]
33
33
steps :
34
34
- uses : actions/checkout@v4
35
35
@@ -60,15 +60,15 @@ jobs:
60
60
strategy :
61
61
matrix :
62
62
os : [ ubuntu-latest, windows-latest ]
63
- java : [ '8', '11', '17' ]
63
+ java : [ '8', '11', '17', '21' ]
64
64
steps :
65
65
- uses : actions/checkout@v4
66
66
67
67
- name : Set up JDK ${{ matrix.java }}
68
68
uses : actions/setup-java@v4
69
69
with :
70
70
distribution : temurin
71
- java-version : ${{ matrix.java }}
71
+ java-version : ${{ matrix.java }}, 21
72
72
73
73
- uses : actions/cache@v4
74
74
with :
@@ -78,21 +78,33 @@ jobs:
78
78
${{ matrix.os }}-maven-
79
79
80
80
- name : Set up Maven
81
+ uses : stCarolas/setup-maven@v5
82
+ with :
83
+ maven-version : ' 3.9.8'
84
+
85
+ - name : Build and test with maven
86
+ # Skip all static checks, they were already done in the compile jobs
81
87
run :
82
- mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=3.9.8"
88
+ mvn -B --errors --activate-profiles ci,jdk8 "-DjdkToolchainVersion=[,9)" --no-transfer-progress package
89
+ if : matrix.java == '8'
90
+
91
+ - name : Build and test with maven
92
+ # Skip all static checks, they were already done in the compile jobs
93
+ run :
94
+ mvn -B --errors --activate-profiles ci "-DjdkToolchainVersion=[11,12)" --no-transfer-progress package
95
+ if : matrix.java == '11'
83
96
84
97
- name : Build and test with maven
85
98
# Skip all static checks, they were already done in the compile jobs
86
99
run :
87
- mvnw.cmd -B --errors --activate-profiles ci,jdk${{ matrix.java }} --no-transfer-progress package
88
- shell : cmd
89
- if : matrix.os == 'windows-latest'
100
+ mvn -B --errors --activate-profiles ci "-DjdkToolchainVersion=[17,18)" --no-transfer-progress package
101
+ if : matrix.java == '17'
90
102
91
103
- name : Build and test with maven
92
104
# Skip all static checks, they were already done in the compile jobs
93
105
run :
94
- ./mvnw -B --errors --activate-profiles ci,jdk${{ matrix.java }} --no-transfer-progress package
95
- if : matrix.os != 'windows-latest '
106
+ mvn -B --errors --activate-profiles ci "-DjdkToolchainVersion=[21,22)" --no-transfer-progress package
107
+ if : matrix.java == '21 '
96
108
97
109
- name : Archive test results and logs
98
110
# if: success() || failure() to also get the test results on successful runs.
0 commit comments