Commit a0a2f61
fix(ci): use property-based compiler release for CLI modules
Replace CLI module exclusion approach with a cleaner property-based
isolation strategy.
Changes:
- Add dotcms.cli.compiler.release property in parent/pom.xml (defaults to 21)
- CLI module POM now uses ${dotcms.cli.compiler.release} instead of hardcoded 11
- Remove CLI exclusion logic from maven-job action
This allows:
- Global maven.compiler.release can be set to any version (e.g., 25)
- CLI modules always compile with safe bytecode version (21) for Quarkus/GraalVM
- Single Maven reactor build (no exclusions or multi-pass)
- Clean property-based separation of concerns
Example usage:
./mvnw clean install -Dmaven.compiler.release=25
# Main modules: Java 25 bytecode
# CLI modules: Java 21 bytecode (Quarkus compatible)
This resolves ASM limitation:
java.lang.IllegalArgumentException: Unsupported class file major version 69
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 895a01f commit a0a2f61
3 files changed
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | 236 | | |
244 | 237 | | |
| 238 | + | |
245 | 239 | | |
246 | 240 | | |
247 | 241 | | |
| |||
254 | 248 | | |
255 | 249 | | |
256 | 250 | | |
257 | | - | |
| 251 | + | |
258 | 252 | | |
259 | 253 | | |
260 | 254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
0 commit comments