Skip to content

Make GraphQLGenerateClientTask and GraphQLGenerateTestClientTask cacheable #1986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@

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

import org.gradle.api.tasks.CacheableTask

internal const val GENERATE_CLIENT_TASK_NAME: String = "graphqlGenerateClient"

/**
* Generate GraphQL Kotlin client and corresponding data classes based on the provided GraphQL queries.
*/
@Suppress("UnstableApiUsage")
@CacheableTask
abstract class GraphQLGenerateClientTask : AbstractGenerateClientTask() {

init {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@

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

import org.gradle.api.tasks.CacheableTask

internal const val GENERATE_TEST_CLIENT_TASK_NAME: String = "graphqlGenerateTestClient"

/**
* Generate GraphQL Kotlin test client and corresponding data classes based on the provided GraphQL queries.
*/
@Suppress("UnstableApiUsage")
@CacheableTask
abstract class GraphQLGenerateTestClientTask : AbstractGenerateClientTask() {

init {
Expand Down
Loading