Skip to content

Comments

UpdateSdkMan recipe to support newJavaVersion=latest.patch#990

Merged
timtebeek merged 4 commits intomainfrom
greg-sdkman-minor-version
Feb 19, 2026
Merged

UpdateSdkMan recipe to support newJavaVersion=latest.patch#990
timtebeek merged 4 commits intomainfrom
greg-sdkman-minor-version

Conversation

@greg-at-moderne
Copy link
Contributor

@greg-at-moderne greg-at-moderne commented Feb 19, 2026

Please review the actual proposed interface to the recipe. Is specifying sameMajor String to newJavaVersion option a decent way of handling this? My hunch is it's not, but not sure what's the better way.

What's changed?

Make UpdateSdkMan recipe support sameMajor as a possible value to newJavaVersion option.
If specified, it will update Java within the same major version, using the same distribution (unless specified otherwise).

What's your motivation?

Have a way to quickly update all the sdkmanrc files to use unified versions. And using latest version within the same major seems to make sense.

@greg-at-moderne greg-at-moderne self-assigned this Feb 19, 2026
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Feb 19, 2026
@greg-at-moderne greg-at-moderne changed the title UpdateSdkMan recipe to support newJavaVersion=minor UpdateSdkMan recipe to support newJavaVersion=sameMajor Feb 19, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review February 19, 2026 19:36
@timtebeek
Copy link
Member

@greg-at-moderne
Copy link
Contributor Author

Good idea. I like your suggestion.

@greg-at-moderne greg-at-moderne changed the title UpdateSdkMan recipe to support newJavaVersion=sameMajor UpdateSdkMan recipe to support newJavaVersion=latest.patch Feb 19, 2026
@github-project-automation github-project-automation bot moved this from In Progress to Ready to Review in OpenRewrite Feb 19, 2026
@timtebeek timtebeek merged commit 626e34f into main Feb 19, 2026
1 check passed
@timtebeek timtebeek deleted the greg-sdkman-minor-version branch February 19, 2026 20:55
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite Feb 19, 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.

2 participants