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

Annotate task with @CacheableTask so that the build cache can be used #212

Open
hakanai opened this issue Nov 9, 2022 · 2 comments
Open

Comments

@hakanai
Copy link

hakanai commented Nov 9, 2022

We're doing some investigations on --build-cache and looking at the Gradle profiler's output to see which tasks aren't being cached.

After fixing a few of the cases where our configuration was causing things not to be cacheable, and fixing our own custom checks, forbidden-apis is now one of the slowest tasks which isn't coming from the cache.

It would be nice if this task were cacheable.

Adding the annotation might be the only thing needed, but it might also change the version of Gradle the plugin is built against...

@uschindler
Copy link
Member

Hi, at moment this is not possible due to minimum Gradle version. And it is not well tested yet.
At moment we also need outputs (the task has no outputs, so there's nothing to cache.

@uschindler
Copy link
Member

Actually this can't be enabled, as the task has no outputs. I let this on TODO list. Once we have a "state" output file, this could be enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants