Commit b5ae1c0
authored
Upgrade to KotlinPoet v1.11.0, make corresponding required changes. (#1427)
### 📝 Description
This PR updates the KotlinPoet dependency version to `v1.11.0`. There are two breaking changes [in this version](https://github.com/square/kotlinpoet/releases/tag/1.11.0) that affect graphql-kotlin:
- KotlinPoet now enforces only allowed parameter modifiers in ParameterSpec (i.e. crossinline, vararg, and noinline). This required an actual fix in `GraphQLClientGenerator`.
- KotlinPoet now emits trailing commas for multi-line parameters and annotations.
In most cases the second change wouldn't be breaking, but because graphql-kotlin's test suite does an exact equality match against golden master queries, these started failing. Luckily regex can catch all these cases fairly easily.
### 🔗 Related Issues
This resolves #1426
### How tested?
- Ran `./gradlew check`1 parent 1545c1d commit b5ae1c0
File tree
113 files changed
+172
-172
lines changed- plugins/client/graphql-kotlin-client-generator/src
- main/kotlin/com/expediagroup/graphql/plugin/client/generator
- test/data
- generator
- alias
- documentation
- documentationquery
- include_skip_directives
- includeskipdirectivesquery
- input_hard_coded
- input_lists
- input_self_reference
- inputs
- interface_diff_selection_sets
- differentselectionsetquery
- interface_impl_diff_selection_sets
- differentselectionsetquery
- interface_missing_types
- interfacemissingtypeselection
- interface_named_fragments
- interfacewithnamedfragmentsquery
- mutation
- inputs
- simplemutation
- object_diff_selection_set
- differentselectionsquery
- object_diff_sub_selection
- differentsubselectionquery
- object_list
- listquery
- object_named_fragments
- objectwithnamedfragmentquery
- object_self_reference
- nestedquery
- operation_name_missing
- anonymousquery
- operation_name_unchanged
- mixedcasequery
- reuse_list_types
- reusedlisttypesquery
- reuse_types
- reusedtypesquery
- scalar_typealias
- scalaraliasquery
- union_diff_selection_set2
- differentselectionsetquery
- union_diff_selection_set
- differentselectionsetquery
- union_missing_types
- unionmissingtypeselection
- union_named_fragments
- unionquerywithnamedfragments
- jackson
- custom_scalar_input
- inputs
- scalars
- custom_scalars
- customscalarquery
- enums
- interface
- interfacewithinlinefragmentsquery
- object
- complexobjectquery
- union
- unionquerywithinlinefragments
- variables
- inputs
- kotlinx
- custom_scalar_input
- inputs
- custom_scalars
- customscalarquery
- deprecated_opt_in
- enums
- interface
- interfacewithinlinefragmentsquery
- multiple_queries
- firstquery
- inputs
- secondquery
- object
- complexobjectquery
- union
- unionquerywithinlinefragments
- variables
- inputs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
113 files changed
+172
-172
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
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 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
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 | | |
0 commit comments