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

[Question] Incremental compilation and trackSourceFiles #1057

Open
mattinger opened this issue Oct 14, 2024 · 0 comments
Open

[Question] Incremental compilation and trackSourceFiles #1057

mattinger opened this issue Oct 14, 2024 · 0 comments

Comments

@mattinger
Copy link

mattinger commented Oct 14, 2024

We've been having a lot of issues with gradle caching and it properly recognizing the inputs and outputs from anvil. As a result a lot of our developers have to run with the "--rerun-tasks" to ensure that we fully regenerate the code and put the new code in the cache. This is typically happening as we migrate top level dagger interfaces marked with @Component into interfaces with @ContributesSubcomponent. Even with running a clean prior to building, it seems the gradle cache is still pulling the results as it's not recognizing that the input files are changing.

I've seen a blurb on the README about this property. Is this the intent of this property?

com.squareup.anvil.trackSourceFiles=true

I'm just looking for clarification if this can help us or not with this issue. We're using 2.5.0-beta11 so that we can use the kotlin 2.0 plugin with the language level set to 1.9 workaround.

Thanks.

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

1 participant