Gradle task processAot
fails when Bean Validation API present but no provider found
#30130
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: regression
A bug that is also a regression
Milestone
We have a native application pulling
jakarta.validation:jakarta.validation-api
as a transitive dependency but not using Validation.And the following failure appears during
processAot
task for Spring Boot 3.0.3 and 3.0.4, but not 3.0.2It seems
BeanValidationBeanRegistrationAotProcessor
is too strict and while having the API without implementation is not useful I don't think is a common case when dealing with third-party dependencies (in this caseio.swagger.core.v3:swagger-core
).Current workarounds:
exclude (group: 'jakarta.validation', module: 'jakarta.validation-api')
completelyimplementation 'org.springframework.boot:spring-boot-starter-validation'
The text was updated successfully, but these errors were encountered: