Skip to content

Commit ff7cf2d

Browse files
Patryk Kostrzewawilkinsona
authored andcommitted
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
1 parent f1510f8 commit ff7cf2d

File tree

1 file changed

+4
-8
lines changed
  • spring-boot-project/spring-boot-starters/spring-boot-starter-webflux

1 file changed

+4
-8
lines changed

spring-boot-project/spring-boot-starters/spring-boot-starter-webflux/pom.xml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,12 @@
2828
<artifactId>spring-boot-starter-reactor-netty</artifactId>
2929
</dependency>
3030
<dependency>
31-
<groupId>jakarta.validation</groupId>
32-
<artifactId>jakarta.validation-api</artifactId>
33-
</dependency>
34-
<dependency>
35-
<groupId>org.hibernate.validator</groupId>
36-
<artifactId>hibernate-validator</artifactId>
31+
<groupId>org.springframework.boot</groupId>
32+
<artifactId>spring-boot-starter-validation</artifactId>
3733
<exclusions>
3834
<exclusion>
39-
<groupId>javax.validation</groupId>
40-
<artifactId>validation-api</artifactId>
35+
<groupId>org.apache.tomcat.embed</groupId>
36+
<artifactId>tomcat-embed-el</artifactId>
4137
</exclusion>
4238
</exclusions>
4339
</dependency>

0 commit comments

Comments
 (0)