Skip to content

Commit b1633a0

Browse files
authored
Corrected build.gradle.kts sample (#158)
1 parent f3ae5cf commit b1633a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/gradle/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ You can also refer to build.gradle files in example projects: [example-client/bu
8888

8989
#### build.gradle.kts:
9090

91-
```groovy
92-
tasks.named<GraphqlCodegenGradleTask>("graphqlCodegen") {
93-
graphqlSchemaPaths = listOf("$projectDir/src/main/resources/graphql/schema.graphqls".toString())
94-
outputDir = new File("$buildDir/generated")
91+
```kotlin
92+
tasks.named<GraphQLCodegenGradleTask>("graphqlCodegen") {
93+
graphqlSchemaPaths = listOf("$projectDir/src/main/resources/graphql/schema.graphqls")
94+
outputDir = File("$buildDir/generated")
9595
packageName = "com.example.graphql.model"
9696
customTypesMapping = mutableMapOf(Pair("EpochMillis", "java.time.LocalDateTime"))
9797
customAnnotationsMapping = mutableMapOf(Pair("EpochMillis", "com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.example.json.EpochMillisScalarDeserializer.class"))

0 commit comments

Comments
 (0)