未验证 提交 b1633a0c 编写于 作者: D Darrell King 提交者: GitHub

Corrected build.gradle.kts sample (#158)

上级 f3ae5cfd
......@@ -88,10 +88,10 @@ You can also refer to build.gradle files in example projects: [example-client/bu
#### build.gradle.kts:
```groovy
tasks.named<GraphqlCodegenGradleTask>("graphqlCodegen") {
graphqlSchemaPaths = listOf("$projectDir/src/main/resources/graphql/schema.graphqls".toString())
outputDir = new File("$buildDir/generated")
```kotlin
tasks.named<GraphQLCodegenGradleTask>("graphqlCodegen") {
graphqlSchemaPaths = listOf("$projectDir/src/main/resources/graphql/schema.graphqls")
outputDir = File("$buildDir/generated")
packageName = "com.example.graphql.model"
customTypesMapping = mutableMapOf(Pair("EpochMillis", "java.time.LocalDateTime"))
customAnnotationsMapping = mutableMapOf(Pair("EpochMillis", "com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.example.json.EpochMillisScalarDeserializer.class"))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册