Skip to content

build(gradle): apply the io.github.ben-manes.versions plugin id - #831

Merged
darbyjack merged 1 commit into
masterfrom
fix/ben-manes-versions-plugin-id
Oct 5, 2026
Merged

darbyjack merged 1 commit into
masterfrom
fix/ben-manes-versions-plugin-id

Conversation

@darbyjack

Copy link
Copy Markdown
Member

Summary

Gradle warns on every build that the plugin id is deprecated:

The com.github.ben-manes.versions plugin id is deprecated;
apply io.github.ben-manes.versions instead.

The id is declared once, in the version catalog, and reached through alias(libs.plugins.versions) in build.gradle.kts. The alias name is unchanged.

-versions = { id = "com.github.ben-manes.versions", version.ref = "versions-plugin" }
+versions = { id = "io.github.ben-manes.versions", version.ref = "versions-plugin" }

Evidence

Both ids are published at the pinned 0.64.0, and both marker POMs depend on the same implementation, so this is an id rename with no plugin code change:

id marker artifact depends on
com.github.ben-manes.versions com.github.ben-manes.versions.gradle.plugin io.github.ben-manes:gradle-versions-plugin:0.64.0
io.github.ben-manes.versions io.github.ben-manes.versions.gradle.plugin io.github.ben-manes:gradle-versions-plugin:0.64.0

./gradlew help --warning-mode all no longer reports the deprecation, and the plugin still applies:

$ ./gradlew tasks --all | grep -i ben-manes
dependencyUpdates - Displays the dependency updates for the project.
partialDependencyUpdates - Resolves the dependency updates of a single project.

./gradlew test passes.

One other deprecation still appears in that output, Configuration.setVisible(boolean), from a different plugin. Left alone.

Merge Danger

Door: two-way

Build configuration only, reverts with a single commit.

Blast Radius: none

Build-time only. No plugin behaviour, task name or dependency coordinate changes, and the shipped jar is unaffected.

Gradle warns that the com.github.ben-manes.versions plugin id is deprecated in
favour of io.github.ben-manes.versions. Both ids are published for 0.64.0 and
both marker POMs resolve to the same io.github.ben-manes:gradle-versions-plugin
0.64.0 artifact, so this only changes the id Gradle resolves the plugin by.
@darbyjack
darbyjack merged commit f36a7af into master Oct 5, 2026
2 checks passed
@darbyjack
darbyjack deleted the fix/ben-manes-versions-plugin-id branch October 5, 2026 17:18
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.

1 participant