Commit f4e9392
authored
Add JDK 17, 21, 25 to PR CI Matrix (#4305)
* Update PR CI to run on JDK 8, 17, 21, and 25
Modified .github/workflows/pr.yml to use a matrix strategy for testing across multiple JDK versions.
Ensured that artifact generation, static analysis, and reporting steps are executed only for the default JDK 8 build.
Retained legacy JDK 8 setup (with JavaFX) while using setup-java@v4 for newer JDKs.
* Fix Maven compilation for JDK 9+ by overriding Java 1.5 target
Modified maven/core/pom.xml and vm/JavaAPI/pom.xml to use Maven properties for compiler source/target settings.
Added a 'modern-jdk' Maven profile activated on JDK 9+ to set compiler source/target to 1.8.
This resolves 'Source option 5 is no longer supported' errors when building with newer JDKs in the CI matrix.
* Fix JDK 17+ build failure by restricting tools.jar dependency
Modified maven/parparvm/pom.xml to move the system dependency on tools.jar into a Maven profile active only for JDKs < 9.
This prevents the 'Could not find artifact com.sun:tools:jar:1.5.0' error on newer JDKs (like 17+) where tools.jar has been removed.
* Fix ParparVM JavaAPI compilation for JDK 9+
Modified maven/parparvm/pom.xml to use Maven properties for the javac task source/target versions.
Added a 'modern-jdk' Maven profile activated on JDK 9+ to override these properties to 1.8.
This resolves the 'Source option 5 is no longer supported' error in the ParparVM build when running on newer JDKs.
* Fix Ant build failures on JDK 9+ by injecting javac properties
Modified .github/workflows/pr.yml to pass -Djavac.source=1.8 -Djavac.target=1.8 to Ant commands when running on JDK 9+ (i.e., non-JDK 8 builds).
This overrides the project.properties setting (1.6) which caused 'Source option 6 is no longer supported' errors on modern JDKs, while preserving the legacy configuration for the default JDK 8 pipeline.
* Fix Ant test-javase failure on newer JDKs
Moved the 'Build CLDC11 JAR' step before 'Build with Ant' (test-javase) in pr.yml.
This ensures the CLDC11 jar is pre-built with the correct compiler options (1.8) on modern JDKs, preventing the 'CodenameOneCLI' test runner from failing when attempting to rebuild it with default (1.6) options.
* Skip SpotBugs on non-JDK 8 builds
Modified .github/workflows/pr.yml to append -Dspotbugs.skip=true to the Maven command for all JDK versions except 8.
This prevents build failures on newer JDKs (like JDK 25) caused by SpotBugs incompatibility with modern class file versions, while ensuring static analysis remains active for the default pipeline.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent d33315b commit f4e9392
4 files changed
+137
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
48 | 59 | | |
49 | 60 | | |
50 | 61 | | |
| |||
54 | 65 | | |
55 | 66 | | |
56 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
57 | 72 | | |
58 | | - | |
| 73 | + | |
59 | 74 | | |
60 | 75 | | |
61 | 76 | | |
| |||
73 | 88 | | |
74 | 89 | | |
75 | 90 | | |
76 | | - | |
| 91 | + | |
77 | 92 | | |
78 | 93 | | |
79 | 94 | | |
| |||
82 | 97 | | |
83 | 98 | | |
84 | 99 | | |
85 | | - | |
| 100 | + | |
86 | 101 | | |
87 | 102 | | |
88 | 103 | | |
| |||
110 | 125 | | |
111 | 126 | | |
112 | 127 | | |
113 | | - | |
| 128 | + | |
114 | 129 | | |
115 | 130 | | |
116 | 131 | | |
117 | 132 | | |
118 | 133 | | |
119 | 134 | | |
120 | | - | |
| 135 | + | |
121 | 136 | | |
122 | 137 | | |
123 | 138 | | |
| |||
183 | 198 | | |
184 | 199 | | |
185 | 200 | | |
186 | | - | |
| 201 | + | |
187 | 202 | | |
188 | 203 | | |
189 | 204 | | |
| |||
199 | 214 | | |
200 | 215 | | |
201 | 216 | | |
202 | | - | |
| 217 | + | |
203 | 218 | | |
204 | 219 | | |
205 | 220 | | |
206 | 221 | | |
207 | 222 | | |
208 | | - | |
| 223 | + | |
209 | 224 | | |
210 | 225 | | |
211 | 226 | | |
| |||
217 | 232 | | |
218 | 233 | | |
219 | 234 | | |
220 | | - | |
221 | | - | |
222 | 235 | | |
223 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
224 | 249 | | |
225 | 250 | | |
| 251 | + | |
226 | 252 | | |
227 | 253 | | |
228 | 254 | | |
| 255 | + | |
229 | 256 | | |
230 | 257 | | |
231 | 258 | | |
| |||
240 | 267 | | |
241 | 268 | | |
242 | 269 | | |
243 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
244 | 276 | | |
245 | 277 | | |
246 | 278 | | |
247 | 279 | | |
248 | 280 | | |
| 281 | + | |
249 | 282 | | |
250 | 283 | | |
251 | 284 | | |
| |||
255 | 288 | | |
256 | 289 | | |
257 | 290 | | |
258 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
259 | 297 | | |
260 | 298 | | |
| 299 | + | |
261 | 300 | | |
262 | 301 | | |
263 | 302 | | |
264 | 303 | | |
265 | 304 | | |
266 | 305 | | |
| 306 | + | |
267 | 307 | | |
268 | 308 | | |
269 | 309 | | |
270 | 310 | | |
271 | 311 | | |
272 | 312 | | |
273 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
274 | 319 | | |
275 | 320 | | |
| 321 | + | |
276 | 322 | | |
277 | 323 | | |
278 | 324 | | |
| 325 | + | |
279 | 326 | | |
280 | 327 | | |
281 | 328 | | |
| |||
284 | 331 | | |
285 | 332 | | |
286 | 333 | | |
| 334 | + | |
287 | 335 | | |
288 | 336 | | |
289 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | 90 | | |
98 | 91 | | |
99 | 92 | | |
| |||
105 | 98 | | |
106 | 99 | | |
107 | 100 | | |
108 | | - | |
109 | | - | |
| 101 | + | |
| 102 | + | |
110 | 103 | | |
111 | 104 | | |
112 | 105 | | |
| |||
159 | 152 | | |
160 | 153 | | |
161 | 154 | | |
162 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
163 | 191 | | |
164 | 192 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
16 | 34 | | |
17 | 35 | | |
18 | 36 | | |
| |||
21 | 39 | | |
22 | 40 | | |
23 | 41 | | |
24 | | - | |
25 | | - | |
| 42 | + | |
| 43 | + | |
26 | 44 | | |
27 | 45 | | |
28 | 46 | | |
| |||
0 commit comments