Commit 7d2b56c
Fix scripted test fixtures for sbt 2.x
CI on sbt 2.0.0 surfaced two sbt-1-isms in the test fixtures (keep-api-url
already passed; only all-libraries and jdk failed):
- all-libraries/test used the sbt 0.13 colon command syntax
`+compile:doc::apiMappings`, which sbt 2.x rejects ("Expected ';'"). Switch to
slash syntax `+Compile / doc / apiMappings`.
- jdk/build.sbt read `sLog.value` in its check/fgrep/jgrep tasks. On sbt 2.x a
Logger has no `HashWriter`, so reading it as a task input breaks the default
task caching ("given evidence sjsonnew.HashWriter[...Logger...] is not found").
Use `println` for the diagnostic output instead — no task input needed. (The
`Map[HashedVirtualFileRef, URI]` from apiMappings does have a HashWriter, as
the passing keep-api-url test shows, so only the Logger was the problem.)
Both changes are also valid on sbt 1.x.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 1e3264d commit 7d2b56c
2 files changed
Lines changed: 9 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | | - | |
| 52 | + | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
| |||
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
66 | | - | |
67 | | - | |
68 | 64 | | |
69 | 65 | | |
70 | 66 | | |
71 | | - | |
| 67 | + | |
72 | 68 | | |
73 | 69 | | |
74 | 70 | | |
| |||
0 commit comments