mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
remove the Jackson dependency (tas one will be picked) (#446)
change the mapper to exclude the null value as for NON_DEFAULT values some changes were added on Jackson after 2.8.3 version
This commit is contained in:
@@ -10,9 +10,6 @@
|
|||||||
<version>11.35-SNAPSHOT</version>
|
<version>11.35-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
|
||||||
<dependency.jackson-databind.version>2.7.9.1</dependency.jackson-databind.version> <!-- this should not be overridden - fixes 2 tests -->
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
@@ -50,10 +47,6 @@
|
|||||||
<groupId>org.alfresco.tas</groupId>
|
<groupId>org.alfresco.tas</groupId>
|
||||||
<artifactId>restapi</artifactId>
|
<artifactId>restapi</artifactId>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
|
||||||
<artifactId>jackson-databind</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
<exclusion>
|
||||||
<groupId>org.alfresco.tas</groupId>
|
<groupId>org.alfresco.tas</groupId>
|
||||||
<artifactId>utility</artifactId>
|
<artifactId>utility</artifactId>
|
||||||
@@ -91,9 +84,5 @@
|
|||||||
<artifactId>docker-java</artifactId>
|
<artifactId>docker-java</artifactId>
|
||||||
<version>3.0.14</version>
|
<version>3.0.14</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
|
||||||
<artifactId>jackson-databind</artifactId>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
@@ -90,8 +90,8 @@ public class PojoUtility
|
|||||||
mapper.addMixIn(target, mixinSource);
|
mapper.addMixIn(target, mixinSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
//include only values that differ from default settings to be included
|
//include only non null values
|
||||||
mapper.setSerializationInclusion(Include.NON_DEFAULT);
|
mapper.setSerializationInclusion(Include.NON_NULL);
|
||||||
|
|
||||||
//return the json object
|
//return the json object
|
||||||
try
|
try
|
||||||
|
Reference in New Issue
Block a user