Skip to content

CIS-3896 Upgrade to Spring Boot 4 and Java 21 - #64

Merged
heathharrelson merged 1 commit into
spring-boot-4from
CIS-3896-upgrade
Oct 2, 2026
Merged

heathharrelson merged 1 commit into
spring-boot-4from
CIS-3896-upgrade

Conversation

@heathharrelson

Copy link
Copy Markdown
Contributor

Overview

Upgrade to Spring Boot 4 using OpenRewrite and bump the Java version to Java 21.

Issues

CIS-3896

[X] Added to CHANGELOG.md

Upgrade to Spring Boot 4 using OpenRewrite and bump the Java version
to Java 21.
@heathharrelson heathharrelson self-assigned this Oct 2, 2026
Comment on lines +78 to +81
if (value instanceof LocalDate date) {
return dateFormatter.print(date);
} else if (value instanceof LocalDateTime time) {
return dateTimeFormatter.print(time);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new syntax as of Java 16 that allows using the value checked by instanceof without a cast.

Comment thread pom.xml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the updated artifact IDs here (spring-boot-starter-webmvc and webjars-locator-lite) something you had to do manually, or was that handled by OpenRewrite?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was handled by OpenRewrite. Spring Boot's packages were made more granular, and the OpenRewrite recipe knows what transformations to make.

@heathharrelson
heathharrelson merged commit b46c630 into spring-boot-4 Oct 2, 2026
2 checks passed
@heathharrelson
heathharrelson deleted the CIS-3896-upgrade branch October 2, 2026 21:25
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.

2 participants