Skip to content

Commit 2cbf814

Browse files
Make GraphQLGenerateClientTask cacheable
1 parent 9d11d44 commit 2cbf814

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/graphql-kotlin-gradle-plugin/src/main/kotlin/com/expediagroup/graphql/plugin/gradle/tasks/GraphQLGenerateClientTask.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@
1616

1717
package com.expediagroup.graphql.plugin.gradle.tasks
1818

19+
import org.gradle.api.tasks.CacheableTask
20+
1921
internal const val GENERATE_CLIENT_TASK_NAME: String = "graphqlGenerateClient"
2022

2123
/**
2224
* Generate GraphQL Kotlin client and corresponding data classes based on the provided GraphQL queries.
2325
*/
2426
@Suppress("UnstableApiUsage")
27+
@CacheableTask
2528
abstract class GraphQLGenerateClientTask : AbstractGenerateClientTask() {
2629

2730
init {

0 commit comments

Comments
 (0)