Gradle build make error #892
-
Hello My project I follow tutorial for create a client in my project https://expediagroup.github.io/graphql-kotlin/docs/client/client-overview#build-configuration I simply add in build.gradle
and
And I have a file .graphql inside resources folder gradle build throw this error
What is wrong ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hello 👋 , can you provide a link to a sample github project that reproduces this issue? Error somewhat implies that you are trying to set
|
Beta Was this translation helpful? Give feedback.
-
Hello @dariuszkuc This is the repo https://github.com/mmaryo/test-graphql-kotlin and do ./gradlew build |
Beta Was this translation helpful? Give feedback.
-
Thanks for raising this, it is indeed a bug on our end (#893) - only tested the plugin from Kotlin DSL. TLDR I've used Kotlin lambda which cannot be used from Groovy script so need update the plugin code to make extension useable from both Kotlin and Groovy. In the meantime you will have to explicitly configure the tasks (or migrate to use KTS)
|
Beta Was this translation helpful? Give feedback.
-
Extension is fixed in #901. PR also updates Gradle plugin docs to reflect both |
Beta Was this translation helpful? Give feedback.
Thanks for raising this, it is indeed a bug on our end (#893) - only tested the plugin from Kotlin DSL. TLDR I've used Kotlin lambda which cannot be used from Groovy script so need update the plugin code to make extension useable from both Kotlin and Groovy.
In the meantime you will have to explicitly configure the tasks (or migrate to use KTS)