Skip to content

Commit 31905fa

Browse files
Update metro to v0.9.3 (#1684)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [dev.zacsweers.metro](https://redirect.github.com/ZacSweers/metro) | plugin | patch | `0.9.2` -> `0.9.3` | | [dev.zacsweers.metro:gradle-plugin](https://redirect.github.com/ZacSweers/metro) | dependencies | patch | `0.9.2` -> `0.9.3` | --- ### Release Notes <details> <summary>ZacSweers/metro (dev.zacsweers.metro)</summary> ### [`v0.9.3`](https://redirect.github.com/ZacSweers/metro/blob/HEAD/CHANGELOG.md#093) [Compare Source](https://redirect.github.com/ZacSweers/metro/compare/0.9.2...0.9.3) *2026-01-02* Happy new year! ##### Enhancements - \[FIR] Add diagnostic for multiple graph-like annotations on a single declaration. - \[IR] Stub `@Binds` expressions in origin points rather than graphs. This reduces unnecessary extra generated functions. - \[IR] Generate reusable getters for scalar-only dependencies that are used multiple times. This helps avoid `MethodTooLargeException` errors in the JVM. - \[IR] Detect suspicious member injections from inherited inject functions too. - \[IR] Don't try to validate graphs if `QualifierOverrideMismatch` errors were reported prior to graph validation. This helps reduce noise in failure cases, as it would otherwise also likely report `MissingBinding` errors caused by the source of the `QualifierOverrideMismatch` error. ##### Fixes - \[FIR, Anvil Interop] Fix rank-based binding replacements getting dropped for multi-contribution classes in root graphs when contributions are from external modules. - \[FIR] Named annotation arguments in different order from declared parameters getting silently skipped. - \[FIR] Fix `Map<K, Provider<V>>` parameters to `@Provides` functions mistakenly unwrapping the Provider value type. - \[FIR] Disallow star projections in `@ElementsIntoSet` binding types. - \[FIR] Require exactly one generic type argument `@ElementsIntoSet` binding types. - \[IR, Anvil Interop] Fix rank-based binding replacements getting dropped for multi-contribution classes in graph extensions when contributions are from external modules. - \[IR] Prohibit duplicate map keys. - \[IR] Fix propagation of scoped multibinding sources to graph extensions. - \[IR] Don't eagerly validate duplicate bindings (only report them if used). - \[IC] Fix member injection metadata not always being written and causing IC issues with member inject function transformation. - \[Gradle] Report all tested Kotlin versions when emitting compatibility warnings. ##### Changes - \[FIR] Change `SUSPICIOUS_MEMBER_INJECT_FUNCTION` diagnostic to be a warning instead of an error. - Remove testing of 2.3.0 pre-releases. IntelliJ stable currently builds off Kotlin `2.3.2x` and Android Studio stable currently points to Kotlin `2.2.2x`. ##### Contributors Special thanks to the following contributors for contributing to this release! - [@&#8203;JoelWilcox](https://redirect.github.com/JoelWilcox) - [@&#8203;japplin](https://redirect.github.com/japplin) - [@&#8203;vRallev](https://redirect.github.com/vRallev) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yNjQuMCIsInVwZGF0ZWRJblZlciI6IjM5LjI2NC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
1 parent c5d1155 commit 31905fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ kotlinPoet = "2.2.0"
3131
ktfmt = "0.61"
3232
markdown = "0.38.1"
3333
mavenPublish = "0.35.0"
34-
metro = "0.9.2"
34+
metro = "0.9.3"
3535
mordant = "3.0.2"
3636
moshi = "1.15.2"
3737
moshix = "0.34.1"

0 commit comments

Comments
 (0)