Commit 2f09a2d
Fix sbt-riddl: ANSI version check and direct riddlc commands
Two fixes:
- checkVersion() now passes --no-ansi-messages and strips any
residual ANSI codes and [info] prefix from riddlc output,
fixing NumberFormatException on version parsing
- All tasks (validate, parse, bastify, prettify) now extract
input-file from .conf and run riddlc commands directly
(e.g. `riddlc validate file.riddl`) instead of using
`riddlc from <conf> <command>`, which required each command
to have its own block in the conf file
Scripted test pinned to riddlcVersion := "1.13.0" so it
downloads a real release instead of the dynver snapshot.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4d138a2 commit 2f09a2d
2 files changed
Lines changed: 35 additions & 4 deletions
File tree
- sbt-riddl/src
- main/scala/com/ossuminc/riddl/sbt/plugin
- sbt-test/sbt-riddl/simple
Lines changed: 34 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
246 | 250 | | |
247 | 251 | | |
248 | 252 | | |
249 | 253 | | |
250 | | - | |
251 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
252 | 262 | | |
253 | 263 | | |
254 | 264 | | |
| |||
510 | 520 | | |
511 | 521 | | |
512 | 522 | | |
513 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
514 | 534 | | |
515 | 535 | | |
516 | 536 | | |
| |||
530 | 550 | | |
531 | 551 | | |
532 | 552 | | |
533 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
534 | 564 | | |
535 | 565 | | |
536 | 566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
0 commit comments