From 80b008dc4c8b60f37b9172ff0da01aa903e01372 Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Thu, 2 Dec 2021 18:44:40 -0300 Subject: [PATCH] Make springdoc-openapi-webmvc-core an optional dependency of springdoc-openapi-data-rest springdoc-openapi-webmvc-core brings spring-webmvc in. Making `ResponseEntityExceptionHandler` to exist and causing a linkage error on missing servlet classes. https://github.com/springdoc/springdoc-openapi/blob/476b012cb23e93663ffdc87538a94690a5a557cc/springdoc-openapi-common/src/main/java/org/springdoc/core/GenericResponseService.java#L115 --- springdoc-openapi-data-rest/pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/springdoc-openapi-data-rest/pom.xml b/springdoc-openapi-data-rest/pom.xml index c04f3c857..4392f5e69 100644 --- a/springdoc-openapi-data-rest/pom.xml +++ b/springdoc-openapi-data-rest/pom.xml @@ -32,6 +32,7 @@ org.springdoc springdoc-openapi-webmvc-core ${project.version} + true org.springframework.boot @@ -64,4 +65,4 @@ - \ No newline at end of file +