Skip to content

Commit 80b008d

Browse files
authored
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
1 parent 476b012 commit 80b008d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

springdoc-openapi-data-rest/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<groupId>org.springdoc</groupId>
3333
<artifactId>springdoc-openapi-webmvc-core</artifactId>
3434
<version>${project.version}</version>
35+
<optional>true</optional>
3536
</dependency>
3637
<dependency>
3738
<groupId>org.springframework.boot</groupId>
@@ -64,4 +65,4 @@
6465
</plugin>
6566
</plugins>
6667
</build>
67-
</project>
68+
</project>

0 commit comments

Comments
 (0)