From f5eb853f263ad96ee304749525cd7a853c8c18f2 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 8 Mar 2019 17:54:03 +0000 Subject: [PATCH] Update web starter to depend on validator starter Previously, the web starter declared direct dependencies on Hibernate Validator and the Jakarta EE validation API. This meant that it required two exclusions to exclude validation from a web application that did not need it. This commit updates the web starter to get its validation dependencies via a dependency on the validation starter. This allows validation to be excluded using a single exclusion. The EL dependency from the validation starter has been excluded to allow the EL implementation from the underlying container starter (Tomcat, Jetty, or Undertow) to continue to be used instead. Closes gh-16176 --- .../spring-boot-starter-web/pom.xml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-web/pom.xml b/spring-boot-project/spring-boot-starters/spring-boot-starter-web/pom.xml index fe7a2eb7c4..e1f488ca84 100644 --- a/spring-boot-project/spring-boot-starters/spring-boot-starter-web/pom.xml +++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-web/pom.xml @@ -28,16 +28,12 @@ spring-boot-starter-tomcat - jakarta.validation - jakarta.validation-api - - - org.hibernate.validator - hibernate-validator + org.springframework.boot + spring-boot-starter-validation - javax.validation - validation-api + org.apache.tomcat.embed + tomcat-embed-el