Groovy graphqlIntrospectSchema failing on kotlin.jvm.internal.MutablePropertyReference #1233
-
Library Version Hello. Our gradle plugin is failing on task graphqlIntrospectSchema. Getting this error:
Do we need to provide some extra parameters when introspecting schema, or this is your issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello 👋 plugins {
id("org.jetbrains.kotlin.jvm") version '1.4.32'
id("com.expediagroup.graphql") version "4.1.1"
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib"
implementation "com.expediagroup:graphql-kotlin-spring-client:4.1.1" // spring or ktor client is required for compilation
}
graphql {
graphqlIntrospectSchema {
endpoint = "http://localhost:8080/graphql"
}
graphqlGenerateClient {
schemaFile = graphqlIntrospectSchema.outputFile // changed to use the output from other task
packageName = "com.example.client.graphql.generated"
queryFileDirectory = "$projectDir/resources/graphql/"
allowDeprecatedFields = false
dependsOn("graphqlIntrospectSchema") // added explicit dependency on task so they run in order
}
} That being said - |
Beta Was this translation helpful? Give feedback.
Hello 👋
I just tried the above configuration and with few minimal tweaks it worked for me. I could not reproduce your error.