Skip to content

Gradle build make error #892

Answered by dariuszkuc
mmaryo asked this question in Q&A
Discussion options

You must be logged in to vote

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)

tasks.getByName("graphqlIntrospectSchema") {
    endpoint.set("https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2")
}
tasks.getByName("graphqlGenerateClient") {
    packageName.set("com.mario.uniswap")
    clientType.set(com.expediagroup.graphql.plugin.generator.GraphQLClientType.KTOR)
    schemaFile.set(graphqlIntrospectSchema.outputFile)
…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by smyrick
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #892 on October 01, 2020 20:29.