Spring Boot 4 declares Java 17 as minimum version as of 4.0.1 and is compatible with 21 and 25: https://docs.spring.io/spring-boot/system-requirements.html
Let's update GitHub Actions to verify with Java 25 but retain Java 17 as base version for distribution.