Commit e811522
Resolve Picocli InitializationException in release builds (#645)
R8 minification was aggressively stripping Picocli annotations (@command, @option) and renaming command classes, causing reflection to fail at runtime.
We add targeted ProGuard rules to ensure CLI stability:
- Preserved attributes required for reflection and annotations.
- Protected any class or member annotated with Picocli markers.
- Kept internal Picocli classes required for standard help mixins.
- Retained Gson IPC data models (CliRequest/Response) to prevent socket serialization failures in release builds.
Co-authored-by: JingMatrix <jingmatrix@gmail.com>1 parent 0b0d740 commit e811522
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
10 | 34 | | |
11 | 35 | | |
12 | 36 | | |
| |||
0 commit comments