-
Notifications
You must be signed in to change notification settings - Fork 41
Bump org.springframework.boot from 3.5.7 to 4.0.0 #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump org.springframework.boot from 3.5.7 to 4.0.0 #231
Conversation
Bumps [org.springframework.boot](https://github.com/spring-projects/spring-boot) from 3.5.7 to 4.0.0. - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.5.7...v4.0.0) --- updated-dependencies: - dependency-name: org.springframework.boot dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Change from CLAUDE_CODE_OAUTH_TOKEN to ANTHROPIC_API_KEY due to OAuth token format issues with the GitHub Action. See: anthropics/claude-code-action#727 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Pull Request Review: Spring Boot 4.0.0 UpgradeSummaryThis PR upgrades Spring Boot from version 3.5.7 to 4.0.0, a major version upgrade that includes breaking changes. The PR also updates the GitHub Actions workflow to use the newer Anthropic API key authentication method. Changes Overview1. Spring Boot Upgrade (build.gradle)
2. GitHub Actions Update (.github/workflows/claude-code-review.yml)
Critical Considerations for Spring Boot 4.0
|
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Pin spring-retry to version 2.0.12 for compatibility - Add Spring Boot 4 modular test starters: - spring-boot-starter-data-jpa-test - spring-boot-webmvc-test - spring-boot-jdbc-test 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove deprecated SecurityExpressionHandler<FilterInvocation> bean - Remove deprecated DefaultWebSecurityExpressionHandler - Update methodSecurityExpressionHandler to static method with RoleHierarchy parameter injection (Spring Security 7 pattern) - Remove unused imports for FilterInvocation and related classes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Spring Boot 4 moved test annotations to separate modules with new package locations: - @AutoConfigureMockMvc -> boot.webmvc.test.autoconfigure - @DataJpaTest -> boot.data.jpa.test.autoconfigure - @AutoConfigureDataJpa -> boot.data.jpa.test.autoconfigure - @EntityScan -> boot.persistence.autoconfigure Updated imports in: - DatabaseTest.java - IntegrationTest.java - OAuth2Test.java - SecurityTest.java - TestApplication.java 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Previously, the /user/updateUser endpoint used UserDto which requires email, password, and matchingPassword fields. This caused validation errors when users only wanted to update their name. Changes: - Add new UserProfileUpdateDto with only firstName and lastName fields - Update UserAPI.updateUserAccount() to use the new DTO - Profile updates no longer require password fields 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
PR Review: Spring Boot 3.5.7 → 4.0.0 UpgradeThis PR upgrades the Spring Boot dependency from 3.5.7 to 4.0.0, which is a major version upgrade. Overall, the implementation is well-executed with careful attention to the breaking changes. Here's my detailed review: ✅ Strengths
|
| Category | Rating | Notes |
|---|---|---|
| Code Quality | ⭐⭐⭐⭐ | Clean, well-structured |
| Security | ⭐⭐⭐⭐⭐ | No issues, improves separation |
| Test Coverage | ⭐⭐⭐ | Missing test updates for new DTO |
| Documentation | ⭐⭐⭐⭐ | Good JavaDoc, clear commit messages |
| Migration Completeness | ⭐⭐⭐⭐ | Covers major changes well |
Overall: Excellent migration work with one critical test fix needed before merge.
🎯 Action Items
- Fix test in
UserAPIUnitTest.java(lines 488-493) - Run
./gradlew testAllto verify JDK 17 & 21 compatibility - Verify no
server.error.*properties remain in config files
Great work on this major version upgrade! The security configuration changes and the new UserProfileUpdateDto are particularly well-implemented. 🚀
- Add Spring Boot 4.0 and 3.5 badges - Add version compatibility table (Spring Boot, Framework, Java, Security) - Add Spring Boot 4.0 installation section with Maven/Gradle examples - Document Spring Boot 4.0 key changes: - Java 21 requirement - Spring Security 7 breaking changes - Jackson 3 updates - Modular test infrastructure package changes - Add required test dependencies for Spring Boot 4.0 - Keep Spring Boot 3.5 section for stable/LTS users - Update Quick Start prerequisites and dependencies 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Spring Boot 4.0 Upgrade ReviewThis is a major version upgrade from Spring Boot 3.5.7 to 4.0.0, which includes breaking changes. Here's my detailed analysis: ✅ Positive Changes1. New UserProfileUpdateDto (Excellent Improvement)
2. Security Configuration Improvements
3. Test Infrastructure Updates
4. Documentation Updates
|
| Category | Status |
|---|---|
| Code Quality | ✅ Good |
| Security | ✅ Improved |
| Test Coverage | |
| Java Version | ❌ BLOCKER |
| Dependencies | |
| Documentation | ✅ Excellent |
🎯 Action Items (Priority Order)
- [CRITICAL] Fix Java toolchain version in build.gradle (17 → 21)
- [HIGH] Update thymeleaf-extras-springsecurity6 → thymeleaf-extras-springsecurity7
- [HIGH] Update unit tests to use UserProfileUpdateDto
- [MEDIUM] Add integration tests for Spring Boot 4.0 compatibility
- [MEDIUM] Test OAuth2 flows thoroughly
- [LOW] Consider virtual threads configuration
Overall Assessment: This is a well-executed upgrade with one critical blocker (Java version) that must be fixed before merging. The new UserProfileUpdateDto is an excellent security improvement. Once the Java version is corrected and tests are updated, this should be good to merge.
Review performed by Claude Code - Automated PR Review
Refresh this branch with updates from main
Spring Boot 4.0 Migration ReviewThank you for this comprehensive Spring Boot 4.0 upgrade! This is a significant migration that handles the framework changes well. Here's my detailed review: ✅ Strengths
|
- Update existing profile update tests to use UserProfileUpdateDto - Add comprehensive validation tests for UserProfileUpdateDto: - Blank firstName validation - Blank lastName validation - firstName exceeding 50 character limit - Null fields validation - Maximum valid length (50 chars) acceptance - Add hibernate-validator to test dependencies for proper validation - Fix testUserDto setup to include matchingPassword field - Update missing email/password tests to expect 400 (validation error) instead of 500 (internal error) - Update CSRF test to reflect standalone MockMvc limitations 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Pull Request Review: Spring Boot 4.0.0 UpgradeThis is a major version upgrade from Spring Boot 3.5.7 to 4.0.0, bringing significant framework changes including Spring Security 7 and Jackson 3. The PR is well-executed overall with good attention to breaking changes and comprehensive test coverage improvements. ✅ Strengths1. Excellent Documentation Updates
2. Good Security Configuration Updates
3. Strong Test Coverage Improvements
4. Better API Design
5. Proper Spring Boot 4.0 Modular Test Infrastructure
|
- Update Java toolchain from 17 to 21 (Spring Boot 4 requirement) - Remove unused springBootVersion property from ext block - Add comment clarifying thymeleaf-extras-springsecurity6 compatibility with Spring Security 7 (no springsecurity7 artifact exists yet) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Spring Boot 4.0 Upgrade ReviewThis PR upgrades the framework from Spring Boot 3.5.7 to 4.0.0, which is a major version upgrade with significant breaking changes. Overall, the upgrade has been handled well with appropriate code changes and comprehensive test coverage. Here's my detailed review: ✅ Strengths1. Excellent Documentation UpdatesThe README.md updates are thorough and helpful:
2. Proper Security Configuration UpdatesThe
3. Improved API DesignThe introduction of
4. Comprehensive Test CoverageThe test updates in
5. Correct Dependency Management
|
- Create MIGRATION.md with detailed upgrade instructions: - Java 21 requirement - Spring Security 7 changes (URL patterns, deprecated APIs) - Test infrastructure changes (modular packages) - Jackson 3 changes - API changes (UserProfileUpdateDto) - Guidance for developers extending the framework - Troubleshooting section for common issues - Version compatibility matrix - Update README.md to link to migration guide: - Added to Table of Contents - Added dedicated Migration Guide section - Added to Reference Documentation - Added inline link in Spring Boot 4.0 section 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Pull Request Review: Spring Boot 4.0 UpgradeThis PR upgrades the Spring User Framework from Spring Boot 3.5.7 to 4.0.0, which is a significant major version upgrade. I've conducted a thorough review of the changes. ✅ Strengths1. Excellent Migration Documentation
2. Proper Spring Security 7 CompatibilityThe security configuration has been correctly updated for Spring Security 7:
3. New UserProfileUpdateDto - Security ImprovementThe addition of
4. Test Infrastructure Updated CorrectlyTest annotations have been properly updated for Spring Boot 4.0's modular test infrastructure:
5. Comprehensive Test UpdatesThe test updates show proper attention to validation changes:
|
Bumps org.springframework.boot from 3.5.7 to 4.0.0.
Release notes
Sourced from org.springframework.boot's releases.
... (truncated)
Commits
1c0e08bRelease v4.0.03487928Merge branch '3.5.x'29b8e96Switch make-default in preparation for Spring Boot 4.0.088da0ddMerge branch '3.5.x'56feeaaNext development version (v3.5.9-SNAPSHOT)3becdc7Move server.error properties to spring.web.error2b30632Merge branch '3.5.x'4f03b44Merge branch '3.4.x' into 3.5.x3d15c13Next development version (v3.4.13-SNAPSHOT)dc140dfUpgrade to Spring Framework 7.0.1Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)