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

Update Anvil to fix gradle build cache issues #93

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

denys-vasylenko
Copy link
Contributor

@denys-vasylenko denys-vasylenko commented Feb 20, 2024

Starting from Kotlin 1.8.20 when new approach to incremental compilation was enabled by default, there is an issue with Anvil's compiler failing to track changes in the source files with @ContributesMultibinding annotation.

Anvil's latest release 2.5.0 helps to fix the issue, by offering a new feature that can track such changes in the source files, and available via com.squareup.anvil.trackSourceFiles=true config option.

To support this feature, whetstone needed to migrate its codegen logic from Anvil's GeneratedFile to GeneratedFileWithSources entity.

Apart from updating the Anvil version, also Dagger, Kotlin, and Compose dependencies were updated for compatibility purposes.

@denys-vasylenko denys-vasylenko merged commit 0ff5edb into main Feb 20, 2024
2 checks passed
@denys-vasylenko denys-vasylenko deleted the task/update-anvil branch February 20, 2024 14:03
msfjarvis added a commit to msfjarvis/whetstone that referenced this pull request Feb 28, 2024
* 'main' of https://github.com/deliveryhero/whetstone:
  Update Anvil to fix gradle cache issues (deliveryhero#93)
  Bump snapshot version for whetstone (deliveryhero#92)
  Updating Dependencies with AGP and Kotlin version upgrade (deliveryhero#91)
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