Skip to content

Record JVM version change reasons#1795

Open
YangSiJun528 wants to merge 4 commits into
spring-io:mainfrom
YangSiJun528:gh-1742
Open

Record JVM version change reasons#1795
YangSiJun528 wants to merge 4 commits into
spring-io:mainfrom
YangSiJun528:gh-1742

Conversation

@YangSiJun528
Copy link
Copy Markdown
Contributor

This PR adds support for recording why a project's JVM version was changed during project generation.

Changes

  • Add JvmVersionChangeReason, an interface that exposes a reason id.
  • Add MutableProjectDescription#changeJvmVersion to update the JVM version and record a reason when it changes.
  • Expose recorded JVM version change reasons from ProjectDescription.

Notes

This change only records JVM version change reasons in Initializr. Consumers such as start.spring.io can define their own reason ids and decide how to render them in generated documentation.

If this PR is merged, I would be interested in helping with the corresponding start.spring.io changes.

Closes gh-1742

Signed-off-by: sijun-yang <yangsijun5528@gmail.com>
Add test-only setup to verify Java 1.8 with Web is upgraded to Java 17 and documented in HELP.md.

Signed-off-by: sijun-yang <yangsijun5528@gmail.com>
This reverts commit f2e0341.

Signed-off-by: sijun-yang <yangsijun5528@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 11, 2026
Signed-off-by: sijun-yang <yangsijun5528@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to record reasons for the JVM version change

3 participants