From 938fa51d91824da3c1f1badfeb5bd4eb62feee2e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Nov 2025 01:02:25 +0000 Subject: [PATCH 1/2] Bump org.springframework.boot from 3.5.7 to 4.0.0 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](https://github.com/spring-projects/spring-boot/compare/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] --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index a0d21b4..8899895 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - id("org.springframework.boot") version "3.5.7" + id("org.springframework.boot") version "4.0.0" id("io.spring.dependency-management") version "1.1.7" val kotlinVersion = "2.2.21" kotlin("jvm") version kotlinVersion From 5d22506f8a487661686ab14ded787677abf514a1 Mon Sep 17 00:00:00 2001 From: Yonatan Karp-Rudin Date: Tue, 2 Dec 2025 08:55:37 +0100 Subject: [PATCH 2/2] Make code compile after migration --- build.gradle.kts | 1 + .../com/yonatankarp/greeting/GreetingApiControllerTest.kt | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 8899895..1da94a7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,6 +26,7 @@ dependencies { implementation("org.jetbrains.kotlin:kotlin-reflect") implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") testImplementation("org.springframework.boot:spring-boot-starter-test") + testImplementation("org.springframework.boot:spring-boot-starter-webmvc-test") } tasks.withType { diff --git a/src/test/kotlin/com/yonatankarp/greeting/GreetingApiControllerTest.kt b/src/test/kotlin/com/yonatankarp/greeting/GreetingApiControllerTest.kt index a9b665c..70bf5a7 100644 --- a/src/test/kotlin/com/yonatankarp/greeting/GreetingApiControllerTest.kt +++ b/src/test/kotlin/com/yonatankarp/greeting/GreetingApiControllerTest.kt @@ -6,10 +6,9 @@ import org.junit.jupiter.api.TestInstance import org.junit.jupiter.params.ParameterizedTest import org.junit.jupiter.params.provider.Arguments import org.junit.jupiter.params.provider.MethodSource -import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc import org.springframework.boot.test.context.SpringBootTest +import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc import org.springframework.http.MediaType -import org.springframework.test.context.web.WebAppConfiguration import org.springframework.test.web.servlet.request.MockMvcRequestBuilders import org.springframework.test.web.servlet.result.MockMvcResultMatchers import org.springframework.test.web.servlet.setup.MockMvcBuilders @@ -18,7 +17,6 @@ import org.springframework.web.context.WebApplicationContext @TestInstance(TestInstance.Lifecycle.PER_CLASS) @SpringBootTest @AutoConfigureMockMvc -@WebAppConfiguration class GreetingApiControllerTest( context: WebApplicationContext, ) {