Skip to content

Move instance main methods recipe to JavaBestPractices#1130

Merged
timtebeek merged 2 commits into
mainfrom
tim/move-instance-main-recipe
Jun 9, 2026
Merged

Move instance main methods recipe to JavaBestPractices#1130
timtebeek merged 2 commits into
mainfrom
tim/move-instance-main-recipe

Conversation

@timtebeek

@timtebeek timtebeek commented Jun 9, 2026

Copy link
Copy Markdown
Member
  • Move MigrateMainMethodToInstanceMain out of UpgradeToJava25 and into JavaBestPractices, since instance main methods (JEP 512) do not yet work for Spring Boot (Support instance main methods spring-projects/spring-boot#35785). This keeps the plain Java 25 version upgrade safe for Spring Boot projects while still offering the transformation as an opinionated best practice.

Move MigrateMainMethodToInstanceMain out of UpgradeToJava25 and into
JavaBestPractices, since instance main methods do not yet work for
Spring Boot (spring-projects/spring-boot#35785).
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Jun 9, 2026
@timtebeek timtebeek moved this from In Progress to Ready to Review in OpenRewrite Jun 9, 2026
@timtebeek timtebeek merged commit 68767e1 into main Jun 9, 2026
1 check passed
@timtebeek timtebeek deleted the tim/move-instance-main-recipe branch June 9, 2026 14:32
@github-project-automation github-project-automation Bot moved this from Ready to Review to Done in OpenRewrite Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant