You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[plugin] refactor Gradle tasks to use Worker API (ExpediaGroup#1002)
Updating all Gradle tasks to use Worker API that allows us to minimize the number of plugin dependencies through classpath isolation. Plugin has `compileOnly` dependencies on `graphql-kotlin` modules (`client-generator` which is renamed `plugin-core` module and `sdl-generator`). New `WorkAction`s will use classpath isolation with custom configuration that includes necessary dependencies to run the actions.
Updated build scan (from example gradle client): https://scans.gradle.com/s/znufum5lj75lg/build-dependencies
// Type of GraphQL client implementation to generate.
97
98
clientType =GraphQLClientType.DEFAULT
98
-
//Custom GraphQL scalar to converter mapping containing information about corresponding Java type and converter that should be used to serialize/deserialize values.
99
-
converters=mapOf("UUID" to ScalarConverterMapping("java.util.UUID", "com.example.UUIDScalarConverter"))
99
+
//List of custom GraphQL scalar to converter mapping containing information about corresponding Java type and converter that should be used to serialize/deserialize values.
// Custom GraphQL scalar to converter mapping containing information about corresponding Java type and converter that should be used to serialize/deserialize values.
139
-
converters = ["UUID" : new com.expediagroup.graphql.plugin.generator.ScalarConverterMapping("java.util.UUID", "com.example.UUIDScalarConverter")]
141
+
clientType = GraphQLClientType.DEFAULT
142
+
// List of custom GraphQL scalar to converter mapping containing information about corresponding Java type and converter that should be used to serialize/deserialize values.
// GraphQL server endpoint that will be used to for running introspection queries. Alternatively you can download schema directly from `sdlEndpoint`.
141
145
endpoint = "http://localhost:8080/graphql"
142
146
// Optional HTTP headers to be specified on an introspection query or SDL request.
@@ -200,7 +204,7 @@ resulting generated code will be automatically added to the project main source
200
204
| -------- | ---- | -------- | ----------- |
201
205
|`allowDeprecatedFields`| Boolean || Boolean flag indicating whether selection of deprecated fields is allowed or not.<br/>**Default value is:**`false`.<br/>**Command line property is**: `allowDeprecatedFields`. |
202
206
|`clientType`| GraphQLClientType || Enum value that specifies target GraphQL client type implementation.<br/>**Default value is:**`GraphQLClientType.DEFAULT`. |
203
-
|`converters`|Map<String, ScalarConverter> ||Custom GraphQL scalar to converter mapping containing information about corresponding Java type and converter that should be used to serialize/deserialize values. |
207
+
|`customScalars`|List<GraphQLScalar> ||List of custom GraphQL scalar to converter mappings containing information about corresponding Java type and converter that should be used to serialize/deserialize values. |
204
208
|`packageName`| String | yes | Target package name for generated code.<br/>**Command line property is**: `packageName`. |
205
209
|`queryFiles`| FileCollection || List of query files to be processed. Instead of a list of files to be processed you can specify `queryFileDirectory` directory instead. If this property is specified it will take precedence over the corresponding directory property. |
206
210
|`queryFileDirectory`| String || Directory file containing GraphQL queries. Instead of specifying a directory you can also specify list of query file by using `queryFiles` property instead.<br/>**Default value is:**`src/main/resources`.<br/>**Command line property is**: `queryFileDirectory`. |
@@ -236,7 +240,7 @@ test source set.
236
240
| -------- | ---- | -------- | ----------- |
237
241
|`allowDeprecatedFields`| Boolean || Boolean flag indicating whether selection of deprecated fields is allowed or not.<br/>**Default value is:**`false`.<br/>**Command line property is**: `allowDeprecatedFields`. |
238
242
|`clientType`| GraphQLClientType || Enum value that specifies target GraphQL client type implementation.<br/>**Default value is:**`GraphQLClientType.DEFAULT`. |
239
-
|`converters`|Map<String, ScalarConverter> ||Custom GraphQL scalar to converter mapping containing information about corresponding Java type and converter that should be used to serialize/deserialize values. |
243
+
|`customScalars`|List<GraphQLScalar> ||List of custom GraphQL scalar to converter mappings containing information about corresponding Java type and converter that should be used to serialize/deserialize values. |
240
244
|`packageName`| String | yes | Target package name for generated code.<br/>**Command line property is**: `packageName`. |
241
245
|`queryFiles`| FileCollection || List of query files to be processed. Instead of a list of files to be processed you can specify `queryFileDirectory` directory instead. If this property is specified it will take precedence over the corresponding directory property. |
242
246
|`queryFileDirectory`| String || Directory file containing GraphQL queries. Instead of specifying a directory you can also specify list of query file by using `queryFiles` property instead.<br/>**Default value is:**`src/test/resources`.<br/>**Command line property is**: `queryFileDirectory`. |
0 commit comments