From 3d0ec60c8d758b13b3406fc83ced9e56a5db8077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Wed, 22 Jul 2026 11:34:32 +0200 Subject: [PATCH] Fix servlet-api dependency scope for spring-boot-h2-console Closes gh-51094 --- module/spring-boot-h2console/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/spring-boot-h2console/build.gradle b/module/spring-boot-h2console/build.gradle index fc720763a0d..e0e9829b47e 100644 --- a/module/spring-boot-h2console/build.gradle +++ b/module/spring-boot-h2console/build.gradle @@ -26,9 +26,10 @@ description = "Spring Boot H2" dependencies { api(project(":core:spring-boot")) - api("jakarta.servlet:jakarta.servlet-api") api("com.h2database:h2") + compileOnly("jakarta.servlet:jakarta.servlet-api") + optional(project(":core:spring-boot-autoconfigure")) testImplementation(project(":core:spring-boot-test"))