Upgrade to Spring Boot 4.0.0 with Spring Cloud 2025.1.0#266
Open
adityamparikh wants to merge 1 commit intospring-cloud:mainfrom
Open
Upgrade to Spring Boot 4.0.0 with Spring Cloud 2025.1.0#266adityamparikh wants to merge 1 commit intospring-cloud:mainfrom
adityamparikh wants to merge 1 commit intospring-cloud:mainfrom
Conversation
Migrate all 77 modules from Spring Boot 2.3-3.1 to Spring Boot 4.0.0 with Spring Cloud Stream 5.0.0 and Spring Cloud 2025.1.0 (Oakwood). Key changes: - Centralize POM hierarchy: all modules inherit from root parent - javax.* -> jakarta.* namespace migration - EmbeddedKafkaRule (JUnit 4) -> @embeddedkafka / EmbeddedKafkaKraftBroker - Kafka Streams 4.0: KStream.branch() -> split().branch() API - TopologyTestDriver: ConsumerRecordFactory -> TestInputTopic/TestOutputTopic - Spring Cloud Stream 5.0: serdeError -> deserializationExceptionHandler - spring.cloud.stream.function.definition -> spring.cloud.function.definition - spring.profiles -> spring.config.activate.on-profile - KafkaTestUtils method signatures: int timeouts -> Duration - Boot 4 modular auto-config package relocations - Kotlin stdlib-jdk8 -> kotlin-stdlib - @SpyBean -> @MockitoSpyBean - Spring Security lambda DSL migration - Remove hardcoded dependency versions in favor of BOM management - Update Confluent, Avro, Testcontainers, and other third-party deps Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: adityamparikh <aditya.m.parikh@gmail.com>
a4c4abe to
9e61c4a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
spring-boot-starter-parentdeclarations, eliminating duplicated dependency management across ~40 modules./mvnw installcompletes with BUILD SUCCESS across all modulesMigration details
<dependencyManagement>blocksjavax.persistence,javax.validation,javax.transaction,javax.annotation→jakarta.*KStream.branch(Predicate...)→split().branch()API;TopologyTestDriver→TestInputTopic/TestOutputTopic;cache.max.bytes.buffering→statestore.cache.max.bytesEmbeddedKafkaRule→@EmbeddedKafka/EmbeddedKafkaKraftBroker;KafkaTestUtilsint timeouts →DurationserdeError→deserializationExceptionHandler;spring.cloud.stream.function.definition→spring.cloud.function.definitionspring.profiles→spring.config.activate.on-profile;spring-boot-starter-webflux-testfor relocatedAutoConfigureWebTestClient@SpyBean→@MockitoSpyBean; JUnit 4 → JUnit 5 throughout;@DynamicPropertySourcefor embedded Kafka setupkotlin-stdlib-jdk8→kotlin-stdlib; removed pinned Kotlin versions (Boot-managed).csrf().disable()→.csrf(csrf -> csrf.disable()))Modules affected
All 18 top-level module groups (127 files changed, 915 insertions, 3837 deletions):
confluent-schema-registry-integration·function-based-stream-app-samples·kafka-batch-sample·kafka-binder-native-app·kafka-e2e-kotlin-sample·kafka-native-serialization·kafka-security-samples·kafka-streams-samples(17 sub-modules) ·kinesis-samples·kotlin-rabbit-functions·multi-binder-samples(6 sub-modules) ·multi-functions-samples·partitioning-samples·routing-samples·schema-registry-integration·batch-producer-consumer·testing-samples·transaction-kafka-samplesTest plan
./mvnw install --fail-at-endpasses with BUILD SUCCESS across all 77 modules@EmbeddedKafka🤖 Generated with Claude Code