Skip to content

Commit 3e02edc

Browse files
pkubowiczmarkpollack
authored andcommitted
build: Use swagger-annotations-jakarta instead of swagger-annotations
Functionality is the same, but modern applications won't use javax variant of Swagger JARs, so the dependency on swagger-annotations caused duplicate classes on the classpath. Signed-off-by: Piotr Kubowicz <[email protected]>
1 parent c47320d commit 3e02edc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

models/spring-ai-huggingface/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
<version>${project.parent.version}</version>
4848
</dependency>
4949

50-
<!-- https://mvnrepository.com/artifact/io.swagger.core.v3/swagger-annotations -->
50+
<!-- https://mvnrepository.com/artifact/io.swagger.core.v3/swagger-annotations-jakarta -->
5151
<dependency>
5252
<groupId>io.swagger.core.v3</groupId>
53-
<artifactId>swagger-annotations</artifactId>
54-
<version>2.2.15</version>
53+
<artifactId>swagger-annotations-jakarta</artifactId>
54+
<version>${swagger-annotations.version}</version>
5555
</dependency>
5656

5757
<dependency>

spring-ai-client-chat/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
<dependency>
5353
<groupId>io.swagger.core.v3</groupId>
54-
<artifactId>swagger-annotations</artifactId>
54+
<artifactId>swagger-annotations-jakarta</artifactId>
5555
<version>${swagger-annotations.version}</version>
5656
</dependency>
5757

spring-ai-model/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112

113113
<dependency>
114114
<groupId>io.swagger.core.v3</groupId>
115-
<artifactId>swagger-annotations</artifactId>
115+
<artifactId>swagger-annotations-jakarta</artifactId>
116116
<version>${swagger-annotations.version}</version>
117117
</dependency>
118118

0 commit comments

Comments
 (0)