Skip to content

chore(deps): update dependency dev.zacsweers.metro:dev.zacsweers.metro.gradle.plugin to v0.12.1#296

Merged
renovate[bot] merged 1 commit intomainfrom
renovate/dev.zacsweers.metro-dev.zacsweers.metro.gradle.plugin-0.x
Mar 31, 2026
Merged

chore(deps): update dependency dev.zacsweers.metro:dev.zacsweers.metro.gradle.plugin to v0.12.1#296
renovate[bot] merged 1 commit intomainfrom
renovate/dev.zacsweers.metro-dev.zacsweers.metro.gradle.plugin-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Mar 30, 2026

This PR contains the following updates:

Package Change Age Confidence
dev.zacsweers.metro:dev.zacsweers.metro.gradle.plugin 0.12.00.12.1 age confidence

Release Notes

ZacSweers/metro (dev.zacsweers.metro:dev.zacsweers.metro.gradle.plugin)

v0.12.1

Compare Source

2026-03-30

Enhancements
  • Support top-level FIR gen (contribution hints, function inject, etc) in Kotlin/JS on 2.3.21+ and 2.4.0-Beta2+.
  • Support generic (top-level) function injection.
Fixes
  • [FIR] Make allSessions lookup lazy to avoid lockups in the IDE.
  • [IR] Exclude generated data class copy functions from @Includes accessor candidates.
  • [IR] Exclude destructuring component functions from @Includes accessor candidates.
Changes
  • Update shaded androidx.tracing to 2.0.0-alpha04.
  • Update shaded Wire dependency to 6.2.0.
Contributors

Special thanks to the following contributors for contributing to this release!


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 this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Mar 30, 2026

Greptile Summary

This PR is a Renovate-generated dependency update intended to bump dev.zacsweers.metro:dev.zacsweers.metro.gradle.plugin to v0.12.1. However, the actual code change only updates the metro runtime library version (0.12.1) in Versions.kt, while the metroPlugin field — which controls the Gradle plugin version referenced by dev.zacsweers.metro.gradle.plugin in the generated TOML catalogs — is left behind at 0.10.2.

  • The metro runtime library version was correctly bumped from 0.12.00.12.1.
  • metroPlugin (used as version.ref = "metro-plugin" for dev.zacsweers.metro.gradle.plugin) was not updated and remains at 0.10.2, contradicting the PR's stated intent.
  • This creates a two-minor-version mismatch between the Gradle plugin (0.10.2) and the runtime library (0.12.1) in any projects generated by this tool, which can cause compile-time/runtime incompatibilities.

Confidence Score: 4/5

  • Not safe to merge as-is — the Gradle plugin version (metroPlugin) was not updated alongside the library version, creating a mismatch in generated projects.
  • A clear P1 defect exists: the PR intends to update the Metro Gradle plugin to v0.12.1 but only the runtime library was bumped. The plugin version remains at 0.10.2, leaving a two-minor-version gap that will propagate into every project generated with Metro DI enabled. A one-line fix resolves the issue.
  • project-generator/src/main/kotlin/io/github/cdsap/projectgenerator/model/Versions.kt — metroPlugin needs to be updated to 0.12.1.

Important Files Changed

Filename Overview
project-generator/src/main/kotlin/io/github/cdsap/projectgenerator/model/Versions.kt Bumps metro dependency version from 0.12.0 to 0.12.1; however, metroPlugin remains at 0.10.2, which appears to be a version mismatch between the library and its Gradle plugin.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Versions.kt] -->|metro = 0.12.1| B[metro-runtime library\ndev.zacsweers.metro:runtime]
    A -->|metroPlugin = 0.10.2 ⚠️| C[metro Gradle plugin\ndev.zacsweers.metro.gradle.plugin]
    B --> D[Generated libs.versions.toml\nmetro = 0.12.1]
    C --> D
    D -->|metro-runtime| E[Generated project\nimplementation deps]
    D -->|metro-plugin| F[Generated project\nbuild plugin]
    B -.->|should match| C
    style C fill:#f96,stroke:#c00
    style A fill:#bbf,stroke:#33f
Loading

Reviews (1): Last reviewed commit: "chore(deps): update dependency dev.zacsw..." | Re-trigger Greptile

val hiltAandroidx: String = "1.3.0",
val metro: String = "0.12.0",
val metro: String = "0.12.1",
val metroPlugin: String = "0.10.2",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Plugin version not updated alongside library version

The metro runtime library has been bumped to 0.12.1, but metroPlugin (dev.zacsweers.metro.gradle.plugin) remains at 0.10.2. The PR title even states the intent is to update the Gradle plugin to 0.12.1, yet only the library version was changed.

Metro's Gradle plugin and runtime library are released together and are expected to be used at the same version — a two-minor-version gap (0.10.2 vs 0.12.1) can cause incompatibilities between the compile-time plugin and the runtime artifacts it generates code for.

metroPlugin should be updated to match:

Suggested change
val metroPlugin: String = "0.10.2",
val metroPlugin: String = "0.12.1",

@renovate renovate bot merged commit 60a1a54 into main Mar 31, 2026
12 checks passed
@renovate renovate bot deleted the renovate/dev.zacsweers.metro-dev.zacsweers.metro.gradle.plugin-0.x branch March 31, 2026 00:55
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.

0 participants