From ff7cf2dc96eff8cd7b6e8f9c0451ce0e8e277475 Mon Sep 17 00:00:00 2001 From: Patryk Kostrzewa Date: Wed, 17 Apr 2019 14:24:58 +0200 Subject: [PATCH] Update WebFlux starter to depend on validation starter Previously, the WebFlux 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 reactive web application that did not need it. This commit updates the WebFlux 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 to continue to be used instead. See gh-16593 --- .../spring-boot-starter-webflux/pom.xml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-webflux/pom.xml b/spring-boot-project/spring-boot-starters/spring-boot-starter-webflux/pom.xml index 39f98facc9e..9bafe3f3c11 100644 --- a/spring-boot-project/spring-boot-starters/spring-boot-starter-webflux/pom.xml +++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-webflux/pom.xml @@ -28,16 +28,12 @@ spring-boot-starter-reactor-netty - 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