Skip to content

Commit

Permalink
Restore wrongly scoped Jersey related dependencies
Browse files Browse the repository at this point in the history
Even with 0.26.0 release was still getting strange runtime errors in
downstream repositories.  On further investigation realised this was
become some dependencies has been erroneously moved to test scope when
they were in fact required for servers to run correctly.  They were
wrongly classified by dependency analysis as unused because they are
not directly used, rather indirectly via Service Loading.

This also explains why the tests here didn't fail as these dependencies
has simpy been moved to test scope so they were present for the tests
and allowed those to pass successfully.
  • Loading branch information
rvesse committed Jan 9, 2025
1 parent ed0202b commit ad9e2d6
Showing 1 changed file with 25 additions and 30 deletions.
55 changes: 25 additions & 30 deletions jaxrs-base-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@
<artifactId>caffeine</artifactId>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>

<dependency>
<groupId>org.glassfish.grizzly</groupId>
<artifactId>grizzly-framework</artifactId>
Expand Down Expand Up @@ -86,6 +96,16 @@
<artifactId>grizzly-http</artifactId>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.inject</groupId>
<artifactId>jersey-hk2</artifactId>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
</dependency>

<dependency>
<groupId>io.telicent.public</groupId>
<artifactId>jwt-servlet-auth-core</artifactId>
Expand Down Expand Up @@ -131,6 +151,11 @@
<artifactId>jwt-servlet-auth-jaxrs3</artifactId>
</dependency>

<dependency>
<groupId>io.telicent.public</groupId>
<artifactId>jwt-servlet-auth-aws</artifactId>
</dependency>

<dependency>
<groupId>io.telicent.smart-caches</groupId>
<artifactId>jwt-auth-common</artifactId>
Expand Down Expand Up @@ -173,25 +198,13 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-jackson</artifactId>
<version>${dependency.jjwt}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.telicent.public</groupId>
<artifactId>jwt-servlet-auth-core</artifactId>
Expand All @@ -200,24 +213,6 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.telicent.public</groupId>
<artifactId>jwt-servlet-auth-aws</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.inject</groupId>
<artifactId>jersey-hk2</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

<build>
Expand Down

0 comments on commit ad9e2d6

Please # to comment.