Skip to content

Commit 1db6f73

Browse files
committed
demonstrate that even with the jersey core and and explicit jakarta dependencies the frame work does use javax and fails
1 parent 6b5a8c7 commit 1db6f73

File tree

1 file changed

+23
-3
lines changed
  • kotlin-jira-client/kotlin-jira-client-test-sdk

1 file changed

+23
-3
lines changed

kotlin-jira-client/kotlin-jira-client-test-sdk/pom.xml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
<groupId>jndi</groupId>
5959
<artifactId>jndi</artifactId>
6060
</exclusion>
61+
<exclusion>
62+
<groupId>org.glassfish.jersey.core</groupId>
63+
<artifactId>jersey-client</artifactId>
64+
</exclusion>
6165
</exclusions>
6266
</dependency>
6367

@@ -125,7 +129,6 @@
125129
<groupId>jakarta.ws.rs</groupId>
126130
<artifactId>jakarta.ws.rs-api</artifactId>
127131
<version>3.1.0</version>
128-
<scope>provided</scope>
129132
</dependency>
130133
<dependency>
131134
<groupId>jakarta.validation</groupId>
@@ -159,10 +162,24 @@
159162
<version>7.0.0</version>
160163
<scope>test</scope>
161164
</dependency>
162-
165+
<dependency>
166+
<groupId>org.glassfish.jersey.core</groupId>
167+
<artifactId>jersey-client</artifactId>
168+
<version>3.1.5</version>
169+
</dependency>
170+
<dependency>
171+
<groupId>org.glassfish.jersey.inject</groupId>
172+
<artifactId>jersey-hk2</artifactId>
173+
<version>3.1.5</version>
174+
</dependency>
175+
<!-- <dependency>-->
176+
<!-- <groupId>javax.ws.rs</groupId>-->
177+
<!-- <artifactId>javax.ws.rs-api</artifactId>-->
178+
<!-- <version>2.1.1</version>-->
179+
<!-- <scope>test</scope>-->
180+
<!-- </dependency>-->
163181
</dependencies>
164182

165-
166183
<build>
167184
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
168185

@@ -208,6 +225,9 @@
208225
<configuration>
209226
<banningExcludes>
210227
<exclude>com.google.code.gson:gson</exclude>
228+
<exclude>jakarta.annotation:jakarta.annotation-api</exclude>
229+
<exclude>jakarta.inject:jakarta.inject-api</exclude>
230+
<exclude>jakarta.ws.rs:jakarta.ws.rs-api</exclude>
211231
</banningExcludes>
212232
<productVersion>${jira.version}</productVersion>
213233
<productDataVersion>${jira.version}</productDataVersion>

0 commit comments

Comments
 (0)