Skip to content
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

[Gradle Plugin] Make CheckDuplicate task cacheable #2688

Merged
merged 4 commits into from
Oct 22, 2020
Merged

[Gradle Plugin] Make CheckDuplicate task cacheable #2688

merged 4 commits into from
Oct 22, 2020

Conversation

oliveeyay
Copy link
Contributor

Fix for #2681

Summary
When enabling the gradle build cache, since ApolloCheckDuplicatesTask is not marked as a CacheableTask (but has an output), this task won't be optimized against the same generated models (ApolloGenerateSourcesTask is already marked as a CacheableTask).

Copy link
Contributor

@martinbonnin martinbonnin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@martinbonnin martinbonnin merged commit 2253b12 into apollographql:main Oct 22, 2020
martinbonnin pushed a commit that referenced this pull request Nov 2, 2020
* Make ApolloCheckDuplicatesTask cacheable

* Combining both gradle cache unit tests

* Fixing unit test

* Trying another way to test the caching

Co-authored-by: Olivier Goutay <ogoutay@netflix.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants