diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
index dfc75ed..4525a23 100644
--- a/.idea/jarRepositories.xml
+++ b/.idea/jarRepositories.xml
@@ -16,6 +16,11 @@
+
+
+
+
+
diff --git a/client/pom.xml b/client/pom.xml
index e1d3b52..f20ed31 100644
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -62,11 +62,6 @@
org.redisson
redisson
-
- com.fasterxml.jackson.dataformat
- jackson-dataformat-xml
- true
-
org.bouncycastle
bcprov-jdk15on
diff --git a/client/src/main/java/com/ossez/discourse/client/service/TopicsService.java b/client/src/main/java/com/ossez/discourse/client/service/TopicsService.java
index ded492e..3606ceb 100644
--- a/client/src/main/java/com/ossez/discourse/client/service/TopicsService.java
+++ b/client/src/main/java/com/ossez/discourse/client/service/TopicsService.java
@@ -1,8 +1,10 @@
package com.ossez.discourse.client.service;
+import com.fasterxml.jackson.core.StreamReadFeature;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.ossez.discourse.common.exception.DiscourseError;
import com.ossez.discourse.common.exception.DiscourseRuntimeException;
import com.ossez.discourse.common.model.dto.Post;
@@ -48,10 +50,10 @@ public class TopicsService extends DiscourseClient {
if (response.code() == HttpStatus.SC_OK) {
ObjectMapper objectMapper = new ObjectMapper();
+ objectMapper.registerModule(new JavaTimeModule());
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
objectMapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);
discourseTopic = Optional.of(objectMapper.readValue(responseStr, Topic.class));
-
}
} catch (IOException e) {
diff --git a/common/pom.xml b/common/pom.xml
index 11c2d90..afedacc 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -70,7 +70,7 @@
org.slf4j
jcl-over-slf4j
- 1.7.36
+ 2.0.16
diff --git a/common/src/main/java/com/ossez/discourse/common/model/dto/Topic.java b/common/src/main/java/com/ossez/discourse/common/model/dto/Topic.java
index 6fb6e00..007c603 100644
--- a/common/src/main/java/com/ossez/discourse/common/model/dto/Topic.java
+++ b/common/src/main/java/com/ossez/discourse/common/model/dto/Topic.java
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import java.time.LocalDate;
+import java.time.LocalDateTime;
import java.util.List;
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@@ -18,7 +19,7 @@ public class Topic {
private String title;
private String fancyTitle;
private Integer postsCount;
- private LocalDate createdAt;
+ private LocalDateTime createdAt;
private Integer views;
private Integer replyCount;
private Integer likeCount;
@@ -109,11 +110,11 @@ public class Topic {
this.postsCount = postsCount;
}
- public LocalDate getCreatedAt() {
+ public LocalDateTime getCreatedAt() {
return createdAt;
}
- public void setCreatedAt(LocalDate createdAt) {
+ public void setCreatedAt(LocalDateTime createdAt) {
this.createdAt = createdAt;
}
diff --git a/pom.xml b/pom.xml
index 5017fab..32645b7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -133,11 +133,7 @@
gson
2.8.9
-
- com.fasterxml.jackson.dataformat
- jackson-dataformat-xml
- 2.13.0
-
+
@@ -304,16 +300,17 @@
-
- com.fasterxml.jackson.core
- jackson-core
- 2.14.0
-
com.fasterxml.jackson.datatype
jackson-datatype-jsr310
- 2.14.0
+ 2.17.2
+
+ com.fasterxml.jackson.dataformat
+ jackson-dataformat-xml
+ 2.17.2
+
+
@@ -551,5 +548,12 @@
+
+
+ maven_central
+ Maven Central
+ https://repo.maven.apache.org/maven2/
+
+