Commit 92de89a
authored
Fix UpdateMockWebServerDispatcher classpath lookup (#975)
The recipe asked for `okhttp-4.10` via `classpathFromResources`, but
that artifact is only bundled in the test type table — production runs
of the recipe (e.g. via the Moderne CLI) fail with
`IllegalArgumentException: Unable to find classpath resource
dependencies beginning with: 'okhttp-4.10'` whenever a project has
`mockwebserver` on its classpath.
The template snippet only references `MockResponse` and `.build()`
(itself a 5.x-only method, so the parser is already lenient about
unresolved members), so dropping the unused `okhttp-4.10` request is
sufficient and matches the sister `UpdateMockWebServerMockResponse`
recipe, which uses just `mockwebserver3`.1 parent 64260b8 commit 92de89a
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments