kobylynskyi / graphql-java-codegen-gradle-plugin

Gradle plugin for graphql-java-codegen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting error if supplied empty customTypesMapping array

kobylynskyi opened this issue · comments

Sample config:

graphqlCodegen {
    graphqlSchemaPaths = [
            "$projectDir/src/main/resources/workflow.graphqls".toString()
    ]
    outputDir = new File("$buildDir/generated".toString())
    packageName = "com.xxx.workflow.graphql"
    customTypesMapping = [ ]
    modelNameSuffix = "TO"
}

Error while generation:

Cannot cast object '[]' with class 'java.util.ArrayList' to class 'java.util.Map' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: java.util.Map()