chore(deps): Spring Boot 4.0.6#57
Merged
Merged
Conversation
Bundles dependabot PRs #54 and #48. Requires Gradle 9 (#55, already merged). Boot 4 migration: - @EntityScan moved from o.s.boot.autoconfigure.domain to o.s.boot.persistence.autoconfigure - @WebMvcTest / @AutoConfigureMockMvc moved from o.s.boot.test.autoconfigure.web.servlet to o.s.boot.webmvc.test.autoconfigure (now requires the new spring-boot-starter-webmvc-test test starter) - @MockBean removed; replaced with Spring Framework 7's @MockitoBean - Drop unused dev.samstevens.totp:totp-spring-boot-starter:1.7.1 (TwoFactorService implements TOTP from scratch with javax.crypto; the starter pinned spring-boot-autoconfigure 2.2.5 which conflicts with Boot 4 dependency management)
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
Bumps Spring Boot from 3.2.5 to 4.0.6 in both the library (
build.gradle.kts) and the Docker host-app (docker/host-app/build.gradle.kts).Bundles two dependabot PRs:
Requires Gradle 9, already shipped via #55.
Boot 4 migration changes
@EntityScanmoved fromo.s.boot.autoconfigure.domaintoo.s.boot.persistence.autoconfigure.@WebMvcTest/@AutoConfigureMockMvcmoved fromo.s.boot.test.autoconfigure.web.servlettoo.s.boot.webmvc.test.autoconfigure. These now live in a separate test starter, sospring-boot-starter-webmvc-testis added totestImplementation.@MockBean(Spring Boot) was removed in 4.0; replaced with Spring Framework 7's@MockitoBean(o.s.test.context.bean.override.mockito.MockitoBean) across the four@WebMvcTesttest classes.dev.samstevens.totp:totp-spring-boot-starter:1.7.1.TwoFactorServiceimplements TOTP from scratch usingjavax.crypto.Macand never imported anything from the starter; the starter also hard-pinnedspring-boot-autoconfigure:2.2.5.RELEASEas a transitive dep, which would have conflicted with Boot 4 dependency management.Test plan
./gradlew clean build(Temurin 17, Gradle 9.5.0) — green; 217 tests, 0 failures, 0 errors../gradlew :docker:host-app:bootJar(smoke) — green.