From b05a24131605dc73acd1d6941f55c8813823ae42 Mon Sep 17 00:00:00 2001 From: Luke Sikina Date: Sun, 15 Oct 2023 10:26:08 -0400 Subject: [PATCH] [ALS-5056] QueryRequest sumtype - Update jackson deps to support serialization of polymorphic types --- data/pom.xml | 16 ++++++++++++---- .../hpds/data/phenotype/ColumnMeta.java | 4 ++-- pom.xml | 19 ++++++++++++------- service/pom.xml | 16 ++++++++++------ service/src/main/resources/jaxrs-context.xml | 2 +- 5 files changed, 37 insertions(+), 20 deletions(-) diff --git a/data/pom.xml b/data/pom.xml index 298160fc..f4afa848 100644 --- a/data/pom.xml +++ b/data/pom.xml @@ -8,6 +8,10 @@ 1.0-SNAPSHOT + + 2.15.2 + + data data @@ -26,12 +30,16 @@ commons-csv - org.codehaus.jackson - jackson-core-asl + com.fasterxml.jackson.core + jackson-core + + + com.fasterxml.jackson.core + jackson-databind - org.codehaus.jackson - jackson-mapper-asl + com.fasterxml.jackson.core + jackson-annotations edu.harvard.hms.dbmi.avillach diff --git a/data/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/data/phenotype/ColumnMeta.java b/data/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/data/phenotype/ColumnMeta.java index 3831c31c..98d2fa8d 100644 --- a/data/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/data/phenotype/ColumnMeta.java +++ b/data/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/data/phenotype/ColumnMeta.java @@ -3,8 +3,8 @@ import java.io.Serializable; import java.util.List; -import org.codehaus.jackson.annotate.JsonIgnore; -import org.codehaus.jackson.map.annotate.JsonSerialize; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL) public class ColumnMeta implements Serializable{ diff --git a/pom.xml b/pom.xml index 879eeaf9..67701777 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ client-api - 1.8.6 + 2.15.2 UTF-8 1.4.10 @@ -245,13 +245,18 @@ 3.2.5 - org.codehaus.jackson - jackson-core-asl + com.fasterxml.jackson.core + jackson-core ${jackson.version} - org.codehaus.jackson - jackson-mapper-asl + com.fasterxml.jackson.core + jackson-databind + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-annotations ${jackson.version} @@ -275,8 +280,8 @@ 1.1.1 - org.codehaus.jackson - jackson-jaxrs + com.fasterxml.jackson.jaxrs + jackson-jaxrs-json-provider ${jackson.version} diff --git a/service/pom.xml b/service/pom.xml index 734e3a94..267d3092 100644 --- a/service/pom.xml +++ b/service/pom.xml @@ -45,12 +45,16 @@ guava - org.codehaus.jackson - jackson-core-asl + com.fasterxml.jackson.core + jackson-core - org.codehaus.jackson - jackson-mapper-asl + com.fasterxml.jackson.core + jackson-databind + + + com.fasterxml.jackson.core + jackson-annotations javax.xml.bind @@ -69,8 +73,8 @@ activation - org.codehaus.jackson - jackson-jaxrs + com.fasterxml.jackson.jaxrs + jackson-jaxrs-json-provider org.springframework diff --git a/service/src/main/resources/jaxrs-context.xml b/service/src/main/resources/jaxrs-context.xml index 08a237bf..006ed56d 100644 --- a/service/src/main/resources/jaxrs-context.xml +++ b/service/src/main/resources/jaxrs-context.xml @@ -14,7 +14,7 @@ - +