Repository navigation
chore(deps): update dependency dev.zacsweers.metro:dev.zacsweers.metro.gradle.plugin to v1.6.1 - #553
Merged
cdsap merged 1 commit intoDec 3, 2026
Conversation
…o.gradle.plugin to v1.6.1
renovate
Bot
force-pushed
the
renovate/dev.zacsweers.metro-dev.zacsweers.metro.gradle.plugin-1.x
branch
from
December 3, 2026 00:16
0bdd830 to
f23e6ef
Compare
cdsap
deleted the
renovate/dev.zacsweers.metro-dev.zacsweers.metro.gradle.plugin-1.x
branch
December 3, 2026 01:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.6.0→1.6.1Release Notes
ZacSweers/metro (dev.zacsweers.metro:dev.zacsweers.metro.gradle.plugin)
v1.6.1Compare Source
2026-12-02
Enhancements
Fixes
Thing<String, *>names a generic@Injectclass. Previously, the compiler reported a missing binding for the class's raw type parameter, and the IDE resolved the key to the class.@Id(4294967295u)appearing as-1in binding keys, reports, and error messages.reportsDestination.@AssistedFactoryand@DependencyGraph.Factoryat compile time. Reading one on an assisted factory could throwAbstractMethodError.@ElementsIntoSetcould put lists in aSet<String>when a provider returnedBatch<String>andBatch<T>implementedList<List<T>>. Metro now reports a compile error. DeclareSet<List<String>>and returnbatch.toSet().@get:site targets for@OptionalBinding.Map<K, V>?could supplynullto a non-nullMap<K, V>accessor.Function has no body) when a class has overloaded@Injectmethods such asaccept(Int)andaccept(String).Map<String, *>andLazy<*>.AppGraph<String>.@Injectmethods in declaration order in library metadata. Sorting them by name could swap two@Namedarguments of the same type when another module injected the class.ClassCastExceptionin generated factories that passed an@Providesmethod's extension receiver or context parameter in the argument slot for the graph.@set:Injectwriting directly to the backing field and skipping the custom setter.Map<String, String>, Metro could reuse it for aMap<String, () -> String>accessor. Metro now reports a missing binding for the second accessor.ClassCastExceptionwhen injecting a providedMap<Class<*>, V>withenableKClassToClassInteropenabled. Metro tried to convert keys that were already Java classes.NoSuchMethodErrorwhencreateGraph()tried to call a suspend function synchronously to get an extension receiver (e.g.@Provides suspend fun next(): Intfor@Provides fun Int.twice(): Long).@IntoSetor@IntoMapfunctions have names with the same hash code, such asprovideAaandprovideBB.@IntoMapentry to a map that its parent graph also contributes to. This happened when the parent's entry was a scoped@Providesfunction using@ClassKeywith no class argument.@Injectclass or@AssistedFactoryboth with and without its qualifier. Previously, only the first request resolved.fun getFoo(): Fooand the getter that Metro generates for a sharedFoobinding. Before, the build failed with "Platform declaration clash" (Kotlin 2.4.10), or the graph class failed to load withClassFormatError(Kotlin 2.4.20).@Providesfunctions in Dagger modules that come from another compilation. Previously, Metro treated these providers as unscoped and created a new instance on every request.funorval.main'simplementationdependencies.typealias. Changing the alias updates the index without an edit to the graph.SetorMapnow includes requests that use it.@Injectclass or@AssistedFactoryfor a request with no qualifier, like the compiler does. Previously, graph validation reported a missing binding and editor navigation found no binding for the request.Changes
Metro/MultibindingConflicterror when aSetorMapkey has both a direct binding and multibinding contributions or a@Multibindsdeclaration. Previously, this compiled and Metro silently dropped the contributions, so code that compiled before can now fail.SetorMapthat its parent provides directly are an error too.SetorMapstill replaces its parent's contributions.2025.3.6.3,2026.1.5.2,2026.2.5.1,2026.3.0.1, and2026.3.1 RC.2.5.0. Metro retains the Kotlin 2.5 dev adapters used by IntelliJ IDEA 2026.3 and Android Studio Stingray.2.5.20-dev-6103.Contributors
Special thanks to the following contributors for contributing to this release!
Consider sponsoring Metro's development
Configuration
📅 Schedule: (UTC)
🚦 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.