diff --git a/README.md b/README.md index e8caa08f56..c732c02114 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # commercetools sync java [![CI](https://github.com/commercetools/commercetools-sync-java/workflows/CI/badge.svg)](https://github.com/commercetools/commercetools-sync-java/actions?query=workflow%3ACI) [![codecov](https://codecov.io/gh/commercetools/commercetools-sync-java/branch/master/graph/badge.svg)](https://codecov.io/gh/commercetools/commercetools-sync-java) -[![Javadoc](https://javadoc.io/badge2/com.commercetools/commercetools-sync-java/javadoc.svg?label=Javadoc)](https://commercetools.github.io/commercetools-sync-java/v/10.0.3/) +[![Javadoc](https://javadoc.io/badge2/com.commercetools/commercetools-sync-java/javadoc.svg?label=Javadoc)](https://commercetools.github.io/commercetools-sync-java/v/10.0.4/) [![Known Vulnerabilities](https://snyk.io/test/github/commercetools/commercetools-sync-java/4b2e26113d591bda158217c5dc1cf80a88665646/badge.svg)](https://snyk.io/test/github/commercetools/commercetools-sync-java/4b2e26113d591bda158217c5dc1cf80a88665646) @@ -60,26 +60,26 @@ Here are the most popular ones: com.commercetools commercetools-sync-java - 10.0.3 + 10.0.4 ```` #### Gradle ````groovy -implementation 'com.commercetools:commercetools-sync-java:10.0.3' +implementation 'com.commercetools:commercetools-sync-java:10.0.4' ```` #### SBT ```` -libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "10.0.3" +libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "10.0.4" ```` #### Ivy ````xml - + ```` **Note**: To avoid `commercetools JVM SDK` libraries version mismatch between projects. diff --git a/docs/README.md b/docs/README.md index afe1ae46e6..2c726a1ad9 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2,9 +2,9 @@ # commercetools sync [![CI](https://github.com/commercetools/commercetools-sync-java/workflows/CI/badge.svg)](https://github.com/commercetools/commercetools-sync-java/actions?query=workflow%3ACI) [![codecov](https://codecov.io/gh/commercetools/commercetools-sync-java/branch/master/graph/badge.svg)](https://codecov.io/gh/commercetools/commercetools-sync-java) -[![Benchmarks 10.0.3](https://img.shields.io/badge/Benchmarks-10.0.3-orange.svg)](https://commercetools.github.io/commercetools-sync-java/benchmarks/) -[![Download from Maven Central](https://img.shields.io/badge/Maven_Central-10.0.3-blue.svg)](https://search.maven.org/artifact/com.commercetools/commercetools-sync-java/10.0.3/jar) -[![Javadoc](https://javadoc.io/badge2/com.commercetools/commercetools-sync-java/javadoc.svg?label=Javadoc)](https://commercetools.github.io/commercetools-sync-java/v/10.0.3/) +[![Benchmarks 10.0.4](https://img.shields.io/badge/Benchmarks-10.0.4-orange.svg)](https://commercetools.github.io/commercetools-sync-java/benchmarks/) +[![Download from Maven Central](https://img.shields.io/badge/Maven_Central-10.0.4-blue.svg)](https://search.maven.org/artifact/com.commercetools/commercetools-sync-java/10.0.4/jar) +[![Javadoc](https://javadoc.io/badge2/com.commercetools/commercetools-sync-java/javadoc.svg?label=Javadoc)](https://commercetools.github.io/commercetools-sync-java/v/10.0.4/) [![Known Vulnerabilities](https://snyk.io/test/github/commercetools/commercetools-sync-java/4b2e26113d591bda158217c5dc1cf80a88665646/badge.svg)](https://snyk.io/test/github/commercetools/commercetools-sync-java/4b2e26113d591bda158217c5dc1cf80a88665646) @@ -40,18 +40,18 @@ Here are the most popular ones: com.commercetools commercetools-sync-java - 10.0.3 + 10.0.4 ```` #### Gradle ````groovy -implementation 'com.commercetools:commercetools-sync-java:10.0.3' +implementation 'com.commercetools:commercetools-sync-java:10.0.4' ```` #### SBT ```` -libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "10.0.3" +libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "10.0.4" ```` #### Ivy ````xml - + ```` diff --git a/docs/RELEASE_NOTES.md b/docs/RELEASE_NOTES.md index e7625ad859..7558351a93 100644 --- a/docs/RELEASE_NOTES.md +++ b/docs/RELEASE_NOTES.md @@ -27,6 +27,13 @@ 7. Add Migration guide section which specifies explicitly if there are breaking changes and how to tackle them. --> +### 10.0.4 - Jan 9, 2024 +[Commits](https://github.com/commercetools/commercetools-sync-java/compare/10.0.3...10.0.4) | +[Javadoc](https://commercetools.github.io/commercetools-sync-java/v/10.0.4/) | +[Jar](https://search.maven.org/artifact/com.commercetools/commercetools-sync-java/10.0.4/jar) +- 🐞 **Bug Fixes** (1) + - Fix getting a wrong JSON Object mapper (https://github.com/commercetools/commercetools-sync-java/issues/1138) + ### 10.0.3 - Dec 21, 2023 [Commits](https://github.com/commercetools/commercetools-sync-java/compare/10.0.2...10.0.3) | [Javadoc](https://commercetools.github.io/commercetools-sync-java/v/10.0.3/) | diff --git a/docs/usage/QUICK_START.md b/docs/usage/QUICK_START.md index 32b2ad396e..99f118cd14 100644 --- a/docs/usage/QUICK_START.md +++ b/docs/usage/QUICK_START.md @@ -20,13 +20,13 @@ com.commercetools commercetools-sync-java - 10.0.3 + 10.0.4 ```` - For Gradle users: ````groovy // Add commercetools-sync-java dependency. -implementation 'com.commercetools:commercetools-sync-java:10.0.3' +implementation 'com.commercetools:commercetools-sync-java:10.0.4' ```` ### 2. Setup Syncing Options diff --git a/src/main/java/com/commercetools/sync/services/impl/BaseService.java b/src/main/java/com/commercetools/sync/services/impl/BaseService.java index 00eea32ff3..f9f6d2f4f2 100644 --- a/src/main/java/com/commercetools/sync/services/impl/BaseService.java +++ b/src/main/java/com/commercetools/sync/services/impl/BaseService.java @@ -148,7 +148,7 @@ public CompletionStage> cacheKeysToIdsUsingGraphQl( .filter(Objects::nonNull) .forEach( data -> { - ObjectMapper objectMapper = JsonUtils.getConfiguredObjectMapper(); + final ObjectMapper objectMapper = JsonUtils.getConfiguredObjectMapper(); final JsonNode jsonNode = objectMapper.convertValue(data, JsonNode.class); final Iterator elements = jsonNode.get(queryResource.getName()).get("results").elements(); diff --git a/src/main/java/com/commercetools/sync/services/impl/UnresolvedReferencesServiceImpl.java b/src/main/java/com/commercetools/sync/services/impl/UnresolvedReferencesServiceImpl.java index 75ffeb29a7..8336c6b101 100644 --- a/src/main/java/com/commercetools/sync/services/impl/UnresolvedReferencesServiceImpl.java +++ b/src/main/java/com/commercetools/sync/services/impl/UnresolvedReferencesServiceImpl.java @@ -14,8 +14,8 @@ import com.commercetools.sync.commons.models.WaitingToBeResolved; import com.commercetools.sync.commons.utils.ChunkUtils; import com.commercetools.sync.services.UnresolvedReferencesService; -import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; +import io.vrap.rmf.base.client.utils.json.JsonUtils; import java.util.Collections; import java.util.List; import java.util.Optional; @@ -31,8 +31,7 @@ public class UnresolvedReferencesServiceImpl