Nick
10/27/2021, 2:07 PMservice
. When I build it, I get the following error:
Could not determine the dependencies of task ':app:generateServiceApolloSources'.
> Could not resolve all task dependencies for configuration ':app:apolloServiceConsumer'.
> No variants of project :graphql-model match the consumer attributes:
- Configuration ':graphql-model:default':
- Incompatible because this component declares a runtime of a component and the consumer needed a usage of 'apollo-metadata' of a component
- Other compatible attribute:
- Doesn't say anything about com.apollographql.service (required 'service')
apollo {
service("MyApp") {
generateApolloMetadata.set(true)
packageName.set("com.myapp")
// this will create a downloadMyAppApolloSchemaFromIntrospection task
introspection {
endpointUrl.set("<https://api.MyApp.com/api/gql>")
schemaFile.set(file("src/main/graphql/config/schema.graphqls"))
}
}
}
mbonnin
10/27/2021, 2:15 PMservice("service") {
...
}
in both modules (app
and graphql-model
)Nick
10/27/2021, 2:16 PMmbonnin
10/27/2021, 2:16 PMgenerateApolloMetadata.set(true)
in graphql-model
Nick
10/27/2021, 2:16 PMmbonnin
10/27/2021, 2:17 PMNick
10/27/2021, 2:17 PM