Skip to content

Honor explicit overrides of inherited managed plugin versions - #9593

Merged
jkschneider merged 3 commits into
openrewrite:mainfrom
jkschneider:java25-inherited-plugin-version
Nov 3, 2026
Merged

jkschneider merged 3 commits into
openrewrite:mainfrom
jkschneider:java25-inherited-plugin-version

Conversation

@jkschneider

@jkschneider jkschneider commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

A versionless plugin declaration managed by an external parent is never upgraded even with trustParent:false and addVersionIfMissing:true. This leaves Vaadin’s Java 25 migration using a descriptor plugin that rejects class version 69. Honor an explicit request to override inherited management, compare against the resolved version, and preserve newer inherited versions and local profile management. Scope each queued change to its original declaration so another profile’s newer version is preserved.

Validation: eight new tests and the existing upgrade suite pass, totaling 28 passes with four existing skips. Independent reviewers reproduced and verified the inherited/profile cases; native CI passes. The Java 25 consumer recipe inserts descriptor version 3.15.2 and Vaadin compiles successfully. The recipe configuration is tracked in rewrite-migrate-java#1234.

@jkschneider
jkschneider marked this pull request as ready for review November 3, 2026 05:22
@jkschneider
jkschneider merged commit 9fc59bc into openrewrite:main Nov 3, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants