Commit d1815a1
BREAKING CHANGE: Upgrade to Jackson 3 (#2162)
Helpful Context:
- Jackson 3 Upgrade Guide
https://github.com/FasterXML/jackson/blob/main/jackson3/MIGRATING_TO_JACKSON_3.md
- Spring Boot 4 Upgrade Guide - Jackson Section
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-4.0-Migration-Guide#upgrading-jackson
In my previous Spring Boot breaking change PR, I assumed that since
graphql-java used Jackson 2 that we'd be pinned to that as well.
However, on further review, they're only using it as a [test
dependency](https://github.com/graphql-java/graphql-java/blob/e0ca0613e1c15a7a6c4d012e1ebba37e091ac682/build.gradle#L149).
So, this PR takes on the migration to Jackson 3.
Big highlights:
* Use the Spring-preferred `spring-boot-jackson` instead of
`spring-boot-jackson2`
* Bring in ktor support for jackson 3 by moving from
`ktor-serialization-jackson` to `ktor-serialization-jackson3`
* Added in [3.4.0](https://github.com/ktorio/ktor/releases/tag/3.4.0)
with `https://github.com/ktorio/ktor/pull/5301`
* The package for most Jackson classes changed from
`com.fasterxml.jackson.*` to `tools.jackson.*`
* With the exception of `*.annotation.*` classes, those remain under the
old package path
* `ObjectMapper`s are now immutable, the new pattern is provide builder
modifications
---------
Co-authored-by: Jordan Lopez <jordlopez@expediagroup.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JordanJLopez <8593393+JordanJLopez@users.noreply.github.com>1 parent ef99f1e commit d1815a1
101 files changed
Lines changed: 517 additions & 335 deletions
File tree
- clients
- graphql-kotlin-client-jackson/src
- main/kotlin/com/expediagroup/graphql/client/jackson
- serializers
- types
- test/kotlin/com/expediagroup/graphql/client/jackson
- data
- scalars
- serializers
- graphql-kotlin-ktor-client/src/test/kotlin/com/expediagroup/graphql/client/ktor
- graphql-kotlin-spring-client/src/test/kotlin/com/expediagroup/graphql/client/spring
- examples
- client/maven-client/src/main/kotlin/com/expediagroup/graphql/examples/client/maven
- server
- ktor-server/src/main/kotlin/com/expediagroup/graphql/examples/server/ktor
- spring-server/src/test/kotlin/com/expediagroup/graphql/examples/server/spring/subscriptions
- executions/graphql-kotlin-dataloader-instrumentation/src/test/kotlin/com/expediagroup/graphql/dataloader/instrumentation/syncexhaustion
- gradle
- integration
- graalvm
- ktor-graalvm-server/src/test/kotlin/com/expediagroup/graalvm/ktor/schema
- maven-graalvm-server/src/test/kotlin/com/expediagroup/graalvm/maven/schema
- gradle-plugin-integration-tests/client-generator
- custom-scalars-kotlinx/src/main/kotlin/com/expediagroup/scalars
- ktor-jackson/src/main/kotlin/com/expediagroup/ktor/jackson
- ktor-kotlinx/src/main/kotlin/com/expediagroup/ktor/kotlinx
- polymorphic-types-kotlinx/src/main/kotlin/com/expediagroup/polymorphic
- plugins
- client/graphql-kotlin-client-generator/src
- main/kotlin/com/expediagroup/graphql/plugin/client
- generator/types
- test/data/jackson
- custom_scalar_input
- inputs
- scalars
- custom_scalars
- customscalarquery
- scalars
- server/graphql-kotlin-graalvm-metadata-generator/src
- integrationTest/kotlin/com/expediagroup/graphql/plugin/graalvm
- custom
- federated
- main/kotlin/com/expediagroup/graphql/plugin/graalvm
- test/kotlin/com/expediagroup/graphql/plugin/graalvm
- boxed
- coroutine
- enums
- id
- inner
- intf
- list
- primitive
- types
- union
- servers
- graphql-kotlin-ktor-server/src
- main/kotlin/com/expediagroup/graphql/server/ktor
- subscriptions
- test/kotlin/com/expediagroup/graphql/server/ktor
- graphql-kotlin-server/src
- benchmarks/kotlin
- main/kotlin/com/expediagroup/graphql/server
- execution/subscription
- types
- test/kotlin/com/expediagroup/graphql/server
- execution/subscription
- types
- graphql-kotlin-spring-server
- src
- main/kotlin/com/expediagroup/graphql/server/spring
- execution
- subscriptions
- test/kotlin/com/expediagroup/graphql/server/spring
- execution
- routes
- subscriptions
- website/docs/server
- ktor-server
- spring-server
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 21 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 40 | | |
45 | 41 | | |
46 | 42 | | |
| |||
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
69 | 79 | | |
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
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 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 16 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
45 | 44 | | |
46 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | | - | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
81 | | - | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
193 | 197 | | |
194 | 198 | | |
195 | 199 | | |
196 | | - | |
| 200 | + | |
197 | 201 | | |
198 | 202 | | |
199 | 203 | | |
| |||
239 | 243 | | |
240 | 244 | | |
241 | 245 | | |
242 | | - | |
| 246 | + | |
243 | 247 | | |
244 | 248 | | |
245 | 249 | | |
| |||
276 | 280 | | |
277 | 281 | | |
278 | 282 | | |
279 | | - | |
| 283 | + | |
280 | 284 | | |
281 | 285 | | |
282 | 286 | | |
| |||
309 | 313 | | |
310 | 314 | | |
311 | 315 | | |
312 | | - | |
| 316 | + | |
313 | 317 | | |
314 | 318 | | |
315 | 319 | | |
| |||
325 | 329 | | |
326 | 330 | | |
327 | 331 | | |
328 | | - | |
| 332 | + | |
329 | 333 | | |
330 | 334 | | |
331 | 335 | | |
| |||
345 | 349 | | |
346 | 350 | | |
347 | 351 | | |
348 | | - | |
| 352 | + | |
349 | 353 | | |
350 | 354 | | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
0 commit comments