Skip to content

Commit

Permalink
Update dependency com.commercetools:commercetools-sync-java to v9.0.3 (
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Oct 4, 2022
1 parent f1afc5f commit 4bbbdc2
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ext {
assertjVersion = '3.23.1'
pmdVersion = '6.41.0'
jacocoVersion = '0.8.6'
commercetoolsSyncJava = '9.0.1'
commercetoolsSyncJava = '9.0.3'
apacheCliVersion = '1.5.0'
jupiterApiVersion = '5.9.1'
asyncHttpClientVersion = '2.12.3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import java.util.stream.Stream;

public enum SyncModuleOption {
TYPE_SYNC("types", TypeSync.class, Collections.EMPTY_LIST),
PRODUCT_TYPE_SYNC("productTypes", ProductTypeSync.class, Collections.EMPTY_LIST),
TYPE_SYNC("types", TypeSync.class, Collections.emptyList()),
PRODUCT_TYPE_SYNC("productTypes", ProductTypeSync.class, Collections.emptyList()),
CART_DISCOUNT_SYNC("cartDiscounts", CartDiscountSync.class, Collections.singletonList(TYPE_SYNC)),
CUSTOM_OBJECT_SYNC("customObjects", CustomObjectSync.class, Collections.emptyList()),
CATEGORY_SYNC("categories", CategorySync.class, Collections.singletonList(TYPE_SYNC)),
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/commercetools/project/sync/Syncer.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import io.sphere.sdk.client.SphereClient;
import io.sphere.sdk.customobjects.CustomObject;
import io.sphere.sdk.models.ResourceView;
import io.sphere.sdk.models.Versioned;
import io.sphere.sdk.queries.QueryDsl;
import io.sphere.sdk.queries.QueryPredicate;
import java.time.Clock;
Expand Down Expand Up @@ -55,10 +56,11 @@ public abstract class Syncer<
RU extends ResourceView,
RC extends ResourceView<RC, RC>,
RD,
V extends Versioned,
S extends BaseSyncStatistics,
O extends BaseSyncOptions<RU, RD, RC>,
Q extends QueryDsl<RU, Q>,
B extends BaseSync<RD, S, O>> {
B extends BaseSync<RD, V, S, O>> {

private static final Logger LOGGER = LoggerFactory.getLogger(Syncer.class);

Expand Down
10 changes: 7 additions & 3 deletions src/main/java/com/commercetools/project/sync/SyncerFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.commercetools.sync.commons.helpers.BaseSyncStatistics;
import io.sphere.sdk.client.SphereClient;
import io.sphere.sdk.models.ResourceView;
import io.sphere.sdk.models.Versioned;
import io.sphere.sdk.queries.QueryDsl;
import java.time.Clock;
import java.util.ArrayList;
Expand Down Expand Up @@ -129,10 +130,11 @@ private CompletableFuture<Void> chainSyncExecution(
? extends ResourceView,
? extends ResourceView<?, ?>,
?,
? extends Versioned,
? extends BaseSyncStatistics,
? extends BaseSyncOptions<?, ?, ?>,
? extends QueryDsl<?, ?>,
? extends BaseSync<?, ?, ?>>
? extends BaseSync<?, ?, ?, ?>>
syncer =
buildSyncer(
syncOptionValue,
Expand Down Expand Up @@ -288,10 +290,11 @@ private void closeClients() {
? extends ResourceView,
? extends ResourceView<?, ?>,
?,
? extends Versioned,
? extends BaseSyncStatistics,
? extends BaseSyncOptions<?, ?, ?>,
? extends QueryDsl<?, ?>,
? extends BaseSync<?, ?, ?>>
? extends BaseSync<?, ?, ?, ?>>
buildSyncer(
@Nonnull final SyncModuleOption syncModuleOption,
@Nonnull final String runnerNameOptionValue,
Expand All @@ -302,10 +305,11 @@ private void closeClients() {
? extends ResourceView,
? extends ResourceView<?, ?>,
?,
? extends Versioned,
? extends BaseSyncStatistics,
? extends BaseSyncOptions<?, ?, ?>,
? extends QueryDsl<?, ?>,
? extends BaseSync<?, ?, ?>>
? extends BaseSync<?, ?, ?, ?>>
syncer = null;

switch (syncModuleOption) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public final class CartDiscountSyncer
CartDiscount,
CartDiscount,
CartDiscountDraft,
CartDiscount,
CartDiscountSyncStatistics,
CartDiscountSyncOptions,
CartDiscountQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public final class CategorySyncer
Category,
Category,
CategoryDraft,
Category,
CategorySyncStatistics,
CategorySyncOptions,
CategoryQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public final class CustomerSyncer
Customer,
Customer,
CustomerDraft,
Customer,
CustomerSyncStatistics,
CustomerSyncOptions,
CustomerQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public final class CustomObjectSyncer
CustomObject<JsonNode>,
CustomObject<JsonNode>,
CustomObjectDraft<JsonNode>,
CustomObject<JsonNode>,
CustomObjectSyncStatistics,
CustomObjectSyncOptions,
CustomObjectQuery<JsonNode>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public final class InventoryEntrySyncer
InventoryEntry,
InventoryEntry,
InventoryEntryDraft,
InventoryEntry,
InventorySyncStatistics,
InventorySyncOptions,
InventoryEntryQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public final class ProductSyncer
ProductProjection,
Product,
ProductDraft,
ProductProjection,
ProductSyncStatistics,
ProductSyncOptions,
ProductProjectionQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public final class ProductTypeSyncer
ProductType,
ProductType,
ProductTypeDraft,
ProductType,
ProductTypeSyncStatistics,
ProductTypeSyncOptions,
ProductTypeQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public final class ShoppingListSyncer
ShoppingList,
ShoppingList,
ShoppingListDraft,
ShoppingList,
ShoppingListSyncStatistics,
ShoppingListSyncOptions,
ShoppingListQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@

public final class StateSyncer
extends Syncer<
State, State, StateDraft, StateSyncStatistics, StateSyncOptions, StateQuery, StateSync> {
State,
State,
StateDraft,
State,
StateSyncStatistics,
StateSyncOptions,
StateQuery,
StateSync> {

private static final Logger LOGGER = LoggerFactory.getLogger(StateSyncer.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public final class TaxCategorySyncer
TaxCategory,
TaxCategory,
TaxCategoryDraft,
TaxCategory,
TaxCategorySyncStatistics,
TaxCategorySyncOptions,
TaxCategoryQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

public final class TypeSyncer
extends Syncer<
Type, Type, TypeDraft, TypeSyncStatistics, TypeSyncOptions, TypeQuery, TypeSync> {
Type, Type, TypeDraft, Type, TypeSyncStatistics, TypeSyncOptions, TypeQuery, TypeSync> {

private static final Logger LOGGER = LoggerFactory.getLogger(TypeSyncer.class);

Expand Down

0 comments on commit 4bbbdc2

Please sign in to comment.