You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make GraphQLGenerateClientTask and GraphQLGenerateTestClientTask cacheable (#1986)
### 📝 Description
- We can leverage caching in Gradle for `GraphQLGenerateClientTask` and
`GraphQLGenerateTestClientTask` by annotating them with `@CacheableTask`
- Also annotate `schemaFile`, `queryFileDirectory`, `queryFiles` with
`@PathSensitive(PathSensitivity.RELATIVE)` for the purposes of
normalization so that outputs can be reused for caching
- Gradle docs:
https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/CacheableTask.html
Copy file name to clipboardExpand all lines: plugins/graphql-kotlin-gradle-plugin/src/main/kotlin/com/expediagroup/graphql/plugin/gradle/tasks/AbstractGenerateClientTask.kt
Copy file name to clipboardExpand all lines: plugins/graphql-kotlin-gradle-plugin/src/main/kotlin/com/expediagroup/graphql/plugin/gradle/tasks/GraphQLGenerateClientTask.kt
Copy file name to clipboardExpand all lines: plugins/graphql-kotlin-gradle-plugin/src/main/kotlin/com/expediagroup/graphql/plugin/gradle/tasks/GraphQLGenerateTestClientTask.kt
0 commit comments