Add Spring Boot 4.0.0-RC2 support to Azure SDK Spring modules #47195
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Upgrades Azure SDK Spring modules to support Spring Boot 4.0.0-RC2 (releasing November 2025). Version management system updated, dependency versions synchronized, and deprecated API usage removed. Core modules (~85%) compile successfully; remaining compilation errors in autoconfigure module documented with solutions.
Changes Made
Version Management
spring_boot_4.0.0-RC2_managed_external_dependencies.txt(2273 lines)eng/versioning/external_dependencies.txtwith 80+ dependency updatesCode Changes
@NonNullannotations fromorg.springframework.langpackage (deprecated in Spring Framework 7.0)Documentation
sdk/spring/SPRING_BOOT_4_UPGRADE.mdwith:Known Issues (Documented)
Spring Boot 4.0 introduces breaking changes requiring additional fixes:
alwaysApplyingWhenNonNull()removed; use default behaviororg.springframework.boot.bootstrapDetails and solutions in
sdk/spring/SPRING_BOOT_4_UPGRADE.md.Build Status
✅ Successful: Core, Service, ResourceManager, Messaging, Data Cosmos, Feature Management, Integration
❌ Failed: AutoConfigure module (~50 compilation errors from auto-configuration API changes)
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines
Next Steps: Spring Integration team (@rujche, @saragluna) to complete auto-configuration API fixes. Foundation complete; remaining work focused and documented.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/spring-projects/spring-boot/git/trees/v4.0.0-RC2curl -s REDACTED(http block)oss.jfrog.org/usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/azure-sdk-for-java/azure-sdk-for-java/sdk/spring org.codehaus.plexus.classworlds.launcher.Launcher clean compile -f sdk/spring/pom.xml -Pdev -DskipTests -Dcheckstyle.skip -Dspotbugs.skip -Denforcer.skip -Drevapi.skip -T 2(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.