Commit 259ee2d
sergeyk
fix(gradle-plugin): use Worker API classLoaderIsolation to prevent Jackson version conflicts (#18753)
Move code generation into a Gradle Worker API WorkAction with
classLoaderIsolation, preventing buildscript classpath conflicts
(e.g. Jackson version mismatches from Spring Boot or other plugins).
- Extract generation logic into GenerateWorkAction/GenerateWorkParameters
- Always use classLoaderIsolation in GenerateTask.doWork()
- Add openApiGeneratorClasspath configuration for custom generator jars
- Wire missing enumNameMappings and operationIdNameMappings from extension to task
- Add TestKit tests for WorkAction property wiring1 parent 20b18ad commit 259ee2d
6 files changed
Lines changed: 633 additions & 355 deletions
File tree
- modules/openapi-generator-gradle-plugin
- src
- main/kotlin/org/openapitools/generator/gradle/plugin
- tasks
- test/kotlin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
| |||
93 | 99 | | |
94 | 100 | | |
95 | 101 | | |
| 102 | + | |
| 103 | + | |
96 | 104 | | |
97 | 105 | | |
98 | 106 | | |
| |||
126 | 134 | | |
127 | 135 | | |
128 | 136 | | |
| 137 | + | |
| 138 | + | |
129 | 139 | | |
130 | 140 | | |
131 | 141 | | |
| |||
0 commit comments