Skip to content

Commit b694a46

Browse files
committed
fix junit and jackson dependency issues
1 parent 377dd70 commit b694a46

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

aws-serverless-jersey-archetype/src/main/resources/archetype-resources/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<maven.compiler.target>1.8</maven.compiler.target>
1717

1818
<jersey.version>3.1.10</jersey.version>
19-
<jackson.version>2.18.3</jackson.version>
19+
<jackson.version>3.0.2</jackson.version>
2020
<junit.version>5.12.1</junit.version>
2121
</properties>
2222

@@ -51,18 +51,18 @@
5151
<artifactId>jackson-annotations</artifactId>
5252
</exclusion>
5353
<exclusion>
54-
<groupId>com.fasterxml.jackson.core</groupId>
54+
<groupId>tools.jackson.core</groupId>
5555
<artifactId>jackson-databind</artifactId>
5656
</exclusion>
5757
<exclusion>
58-
<groupId>com.fasterxml.jackson.core</groupId>
58+
<groupId>tools.jackson.core</groupId>
5959
<artifactId>jackson-core</artifactId>
6060
</exclusion>
6161
</exclusions>
6262
</dependency>
6363

6464
<dependency>
65-
<groupId>com.fasterxml.jackson.core</groupId>
65+
<groupId>tools.jackson.core</groupId>
6666
<artifactId>jackson-databind</artifactId>
6767
<version>\${jackson.version}</version>
6868
</dependency>

aws-serverless-jersey-archetype/src/main/resources/archetype-resources/src/main/java/StreamLambdaHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.glassfish.jersey.server.ResourceConfig;
1111
import org.glassfish.jersey.server.ServerProperties;
1212

13+
import tools.jackson.core.JacksonException;
1314
import java.io.IOException;
1415
import java.io.InputStream;
1516
import java.io.OutputStream;

aws-serverless-jersey-archetype/src/main/resources/archetype-resources/src/test/java/StreamLambdaHandlerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import jakarta.ws.rs.core.Response;
1717

1818
import java.io.ByteArrayOutputStream;
19+
import tools.jackson.core.JacksonException;
1920
import java.io.IOException;
2021
import java.io.InputStream;
2122

@@ -81,7 +82,7 @@ private void handle(InputStream is, ByteArrayOutputStream os) {
8182
private AwsProxyResponse readResponse(ByteArrayOutputStream responseStream) {
8283
try {
8384
return LambdaContainerHandler.getObjectMapper().readValue(responseStream.toByteArray(), AwsProxyResponse.class);
84-
} catch (IOException e) {
85+
} catch (JacksonException e) {
8586
e.printStackTrace();
8687
fail("Error while parsing response: " + e.getMessage());
8788
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<dependencyCheck.version>12.1.1</dependencyCheck.version>
8383
<!-- <jackson.version>2.19.1</jackson.version> -->
8484
<slf4j.version>2.0.17</slf4j.version>
85-
<junit.version>5.12.2</junit.version>
85+
<junit.version>6.0.0</junit.version>
8686
<mockito.version>5.19.0</mockito.version>
8787
<hamcrest.version>1.3</hamcrest.version>
8888
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

0 commit comments

Comments
 (0)