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

Support gradle configuration cache #26

Closed
yschimke opened this issue Apr 19, 2021 · 4 comments
Closed

Support gradle configuration cache #26

yschimke opened this issue Apr 19, 2021 · 4 comments

Comments

@yschimke
Copy link

yschimke commented Apr 19, 2021

Trying to optimise my build with a build cache and finding issues with supported plugins. Not urgent, but flagging as it may affect others also.

- Task `:mockwebserver-deprecated:animalsnifferMain` of type `ru.vyarus.gradle.plugin.animalsniffer.AnimalSniffer`: cannot serialize object of type 'org.gradle.api.internal.tasks.DefaultSourceSet', a subtype of 'org.gradle.api.tasks.SourceSet', as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.0/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
@xvik
Copy link
Owner

xvik commented Apr 19, 2021

Thank you! I'll try to look it this week

@xvik
Copy link
Owner

xvik commented Nov 6, 2021

I looked configuration cache problem: it's not hard to support but would require a breaking change - changing task parameter type. Also, configuration cache is in experimental state and even gradle itself does not support it completely (so I doubt it's widely used).

I don't deny this, just postpone for some time. If this would be critically important, please ping me.

And I just released a new version with fixed gradle 7 deprecation warnings.

@Goooler
Copy link

Goooler commented Feb 18, 2022

Gradle 7.4 introduces a feature to declare that individual tasks are incompatible with the configuration cache, allowing the feature to be enabled by default while skipping caching when there are tasks don't support it.

https://docs.gradle.org/7.4/release-notes.html#config-cache

@xvik
Copy link
Owner

xvik commented Aug 16, 2022

It appears that I can fix warnings, so now it should work properly.
Will release new version soon (with animalsniffer 1.22)

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

No branches or pull requests

3 participants