Skip to content

Commit 729a053

Browse files
authored
Merge pull request #531 from commercetools/prepare-1.9.0
Release 1.9.0 Preparation
2 parents b763011 + 1cfcceb commit 729a053

70 files changed

Lines changed: 9292 additions & 83 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# commercetools sync
33
[![Build Status](https://travis-ci.org/commercetools/commercetools-sync-java.svg?branch=master)](https://travis-ci.org/commercetools/commercetools-sync-java)
44
[![codecov](https://codecov.io/gh/commercetools/commercetools-sync-java/branch/master/graph/badge.svg)](https://codecov.io/gh/commercetools/commercetools-sync-java)
5-
[![Benchmarks 1.8.2](https://img.shields.io/badge/Benchmarks-1.8.2-orange.svg)](https://commercetools.github.io/commercetools-sync-java/benchmarks/)
5+
[![Benchmarks 1.9.0](https://img.shields.io/badge/Benchmarks-1.9.0-orange.svg)](https://commercetools.github.io/commercetools-sync-java/benchmarks/)
66
[![Download](https://api.bintray.com/packages/commercetools/maven/commercetools-sync-java/images/download.svg) ](https://bintray.com/commercetools/maven/commercetools-sync-java/_latestVersion)
7-
[![Javadoc](http://javadoc-badge.appspot.com/com.commercetools/commercetools-sync-java.svg?label=Javadoc)](https://commercetools.github.io/commercetools-sync-java/v/1.8.2/)
7+
[![Javadoc](http://javadoc-badge.appspot.com/com.commercetools/commercetools-sync-java.svg?label=Javadoc)](https://commercetools.github.io/commercetools-sync-java/v/1.9.0/)
88
[![Known Vulnerabilities](https://snyk.io/test/github/commercetools/commercetools-sync-java/4b2e26113d591bda158217c5dc1cf80a88665646/badge.svg)](https://snyk.io/test/github/commercetools/commercetools-sync-java/4b2e26113d591bda158217c5dc1cf80a88665646)
99

1010
More at https://commercetools.github.io/commercetools-sync-java
@@ -19,6 +19,8 @@ The library supports synchronising the following entities in commercetools
1919
- [ProductTypes](/docs/usage/PRODUCT_TYPE_SYNC.md)
2020
- [Types](/docs/usage/TYPE_SYNC.md)
2121
- [CartDiscounts](/docs/usage/CART_DISCOUNT_SYNC.md)
22+
- [States](/docs/usage/STATE_SYNC.md)
23+
- [TaxCategories](/docs/usage/TAX_CATEGORY_SYNC.md)
2224

2325
![commercetools-java-sync-final 001](https://user-images.githubusercontent.com/9512131/31230702-0f2255a6-a9e5-11e7-9412-04ed52641dde.png)
2426
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
@@ -34,7 +36,7 @@ The library supports synchronising the following entities in commercetools
3436
- [Ivy](#ivy)
3537
- [Roadmap](#roadmap)
3638
- [Release Notes](/docs/RELEASE_NOTES.md)
37-
- [Javadoc](https://commercetools.github.io/commercetools-sync-java/v/1.8.2/)
39+
- [Javadoc](https://commercetools.github.io/commercetools-sync-java/v/1.9.0/)
3840
- [Benchmarks](https://commercetools.github.io/commercetools-sync-java/benchmarks/)
3941

4042
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -76,26 +78,26 @@ Here are the most popular ones:
7678
<dependency>
7779
<groupId>com.commercetools</groupId>
7880
<artifactId>commercetools-sync-java</artifactId>
79-
<version>1.8.2</version>
81+
<version>1.9.0</version>
8082
</dependency>
8183
````
8284

8385
#### Gradle
8486

8587
````groovy
86-
implementation 'com.commercetools:commercetools-sync-java:1.8.2'
88+
implementation 'com.commercetools:commercetools-sync-java:1.9.0'
8789
````
8890

8991
#### SBT
9092

9193
````
92-
libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "1.8.2"
94+
libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "1.9.0"
9395
````
9496

9597
#### Ivy
9698

9799
````xml
98-
<dependency org="com.commercetools" name="commercetools-sync-java" rev="1.8.2"/>
100+
<dependency org="com.commercetools" name="commercetools-sync-java" rev="1.9.0"/>
99101
````
100102

101103

docs/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# commercetools sync
33
[![Build Status](https://travis-ci.org/commercetools/commercetools-sync-java.svg?branch=master)](https://travis-ci.org/commercetools/commercetools-sync-java)
44
[![codecov](https://codecov.io/gh/commercetools/commercetools-sync-java/branch/master/graph/badge.svg)](https://codecov.io/gh/commercetools/commercetools-sync-java)
5-
[![Benchmarks 1.8.2](https://img.shields.io/badge/Benchmarks-1.8.2-orange.svg)](https://commercetools.github.io/commercetools-sync-java/benchmarks/)
5+
[![Benchmarks 1.9.0](https://img.shields.io/badge/Benchmarks-1.9.0-orange.svg)](https://commercetools.github.io/commercetools-sync-java/benchmarks/)
66
[![Download](https://api.bintray.com/packages/commercetools/maven/commercetools-sync-java/images/download.svg) ](https://bintray.com/commercetools/maven/commercetools-sync-java/_latestVersion)
7-
[![Javadoc](http://javadoc-badge.appspot.com/com.commercetools/commercetools-sync-java.svg?label=Javadoc)](https://commercetools.github.io/commercetools-sync-java/v/1.8.2/)
7+
[![Javadoc](http://javadoc-badge.appspot.com/com.commercetools/commercetools-sync-java.svg?label=Javadoc)](https://commercetools.github.io/commercetools-sync-java/v/1.9.0/)
88
[![Known Vulnerabilities](https://snyk.io/test/github/commercetools/commercetools-sync-java/4b2e26113d591bda158217c5dc1cf80a88665646/badge.svg)](https://snyk.io/test/github/commercetools/commercetools-sync-java/4b2e26113d591bda158217c5dc1cf80a88665646)
99

1010

@@ -33,6 +33,8 @@ The library supports synchronising the following entities in commercetools
3333
- [ProductTypes](usage/PRODUCT_TYPE_SYNC.md)
3434
- [Types](usage/TYPE_SYNC.md)
3535
- [CartDiscounts](usage/CART_DISCOUNT_SYNC.md)
36+
- [States](usage/STATE_SYNC.md)
37+
- [TaxCategories](/docs/usage/TAX_CATEGORY_SYNC.md)
3638

3739
![commercetools-java-sync-final 001](https://user-images.githubusercontent.com/9512131/31230702-0f2255a6-a9e5-11e7-9412-04ed52641dde.png)
3840

@@ -53,18 +55,18 @@ Here are the most popular ones:
5355
<dependency>
5456
<groupId>com.commercetools</groupId>
5557
<artifactId>commercetools-sync-java</artifactId>
56-
<version>1.8.2</version>
58+
<version>1.9.0</version>
5759
</dependency>
5860
````
5961
#### Gradle
6062
````groovy
61-
implementation 'com.commercetools:commercetools-sync-java:1.8.2'
63+
implementation 'com.commercetools:commercetools-sync-java:1.9.0'
6264
````
6365
#### SBT
6466
````
65-
libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "1.8.2"
67+
libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "1.9.0"
6668
````
6769
#### Ivy
6870
````xml
69-
<dependency org="com.commercetools" name="commercetools-sync-java" rev="1.8.2"/>
71+
<dependency org="com.commercetools" name="commercetools-sync-java" rev="1.9.0"/>
7072
````

docs/RELEASE_NOTES.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,30 @@
3333
[Commits](https://github.com/commercetools/commercetools-sync-java/compare/1.8.0...1.9.0) |
3434
[Javadoc](https://commercetools.github.io/commercetools-sync-java/v/1.9.0/) |
3535
[Jar](https://bintray.com/commercetools/maven/commercetools-sync-java/1.9.0)
36-
3736
-->
3837

38+
### 1.9.0 - July 27, 2020
39+
[Commits](https://github.com/commercetools/commercetools-sync-java/compare/1.8.2...1.9.0) |
40+
[Javadoc](https://commercetools.github.io/commercetools-sync-java/v/1.9.0/) |
41+
[Jar](https://bintray.com/commercetools/maven/commercetools-sync-java/1.9.0)
42+
43+
- 🎉 **New Features** (6)
44+
- **TaxCategory Sync** - Added support for syncing tax categories. [#417](https://github.com/commercetools/commercetools-sync-java/issues/417) For more info how to use it please refer to [TaxCategory usage doc](/docs/usage/TAX_CATEGORY_SYNC.md).
45+
- **TaxCategory Sync** - Exposed `TaxCategorySyncUtils#buildActions` which calculates all needed update actions after comparing a `TaxCategory` and a `TaxCategoryDraft`. [#417](https://github.com/commercetools/commercetools-sync-java/issues/417)
46+
- **TaxCategory Sync** - Exposed `TaxCategoryUpdateActionUtils` which contains utils for calculating needed update actions after comparing individual fields of a `TaxCategory` and a `TaxCategoryDraft`. [#417](https://github.com/commercetools/commercetools-sync-java/issues/417)
47+
- **State Sync** - Added support for syncing states. [#409](https://github.com/commercetools/commercetools-sync-java/issues/409) For more info how to use it please refer to [States usage doc](/docs/usage/STATE_SYNC.md).
48+
- **State Sync** - Exposed `StateSyncUtils#buildActions` which calculates all needed update actions after comparing a `State` and a `StateDraft`. [#409](https://github.com/commercetools/commercetools-sync-java/issues/409)
49+
- **State Sync** - Exposed `StateUpdateActionUtils` which contains utils for calculating needed update actions after comparing individual fields of a `State` and a `StateDraft`. [#409](https://github.com/commercetools/commercetools-sync-java/issues/409)
50+
Thanks, @jarzynp for the contributions!
51+
52+
- 🛠️ **Dependency Updates** (6)
53+
- `com.adarshr.test-logger` `2.0.0` -> [`2.1.0`](https://github.com/radarsh/gradle-test-logger-plugin/releases/tag/v2.1.0)
54+
- `org.assertj.assertj-core` `3.15.0` -> [`3.16.0`](https://assertj.github.io/doc/#assertj-core-3-16-1-release-notes)
55+
- `junit.jupiterApiVersion` `5.6.1` -> [`5.6.2`](https://github.com/junit-team/junit5/releases/tag/r5.6.2)
56+
- `commercetools-jvm-sdk` `1.51.0` -> [`1.52.0`](http://commercetools.github.io/commercetools-jvm-sdk/apidocs/io/sphere/sdk/meta/ReleaseNotes.html#v1_52_0)
57+
- `mockito-junit-jupiter` `3.3.3` -> [`3.4.4`](https://github.com/mockito/mockito/releases/tag/v3.4.4)
58+
- `com.github.ben-manes.versions` `0.28.0` -> [`0.29.0`](https://github.com/ben-manes/gradle-versions-plugin/releases/tag/v0.29.0)
59+
3960
### 1.8.2 - April 30, 2020
4061
[Commits](https://github.com/commercetools/commercetools-sync-java/compare/1.8.1...1.8.2) |
4162
[Javadoc](https://commercetools.github.io/commercetools-sync-java/v/1.8.2/) |

docs/usage/CART_DISCOUNT_SYNC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Therefore, in order for the sync to resolve the actual ids of those references i
3636
reference should return its `key`.
3737

3838
**Note**: When syncing from a source commercetools project, you can use this util which this library provides:
39-
[`replaceCartDiscountsReferenceIdsWithKeys`](https://commercetools.github.io/commercetools-sync-java/v/1.8.2/com/commercetools/sync/cartdiscounts/utils/CartDiscountReferenceReplacementUtils.html#replaceCartDiscountsReferenceIdsWithKeys-java.util.List-)
39+
[`replaceCartDiscountsReferenceIdsWithKeys`](https://commercetools.github.io/commercetools-sync-java/v/1.9.0/com/commercetools/sync/cartdiscounts/utils/CartDiscountReferenceReplacementUtils.html#replaceCartDiscountsReferenceIdsWithKeys-java.util.List-)
4040
that replaces the references id fields with keys, in order to make them ready for reference resolution by the sync:
4141
````java
4242
// Puts the keys in the reference id fields to prepare for reference resolution

docs/usage/CATEGORY_SYNC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ otherwise they won't be matched.
3737
reference would return its `key`.
3838

3939
**Note**: When syncing from a source commercetools project, you can use this util which this library provides:
40-
[`replaceCategoriesReferenceIdsWithKeys`](https://commercetools.github.io/commercetools-sync-java/v/1.8.2/com/commercetools/sync/categories/utils/CategoryReferenceReplacementUtils.html#replaceCategoriesReferenceIdsWithKeys-java.util.List-)
40+
[`replaceCategoriesReferenceIdsWithKeys`](https://commercetools.github.io/commercetools-sync-java/v/1.9.0/com/commercetools/sync/categories/utils/CategoryReferenceReplacementUtils.html#replaceCategoriesReferenceIdsWithKeys-java.util.List-)
4141
that replaces the references id fields with keys, in order to make them ready for reference resolution by the sync:
4242
````java
4343
// Puts the keys in the reference id fields to prepare for reference resolution

docs/usage/IMPORTANT_USAGE_TIPS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ productSync.sync(batch1)
3131
By design, scaling the sync process should **not** be done by executing the batches themselves in parallel. However, it can be done either by:
3232

3333
- Changing the number of [max parallel requests](https://github.com/commercetools/commercetools-sync-java/tree/master/src/main/java/com/commercetools/sync/commons/utils/ClientConfigurationUtils.java#L116) within the `sphereClient` configuration. It defines how many requests the client can execute in parallel.
34-
- or changing the draft [batch size](https://commercetools.github.io/commercetools-sync-java/v/1.8.2/com/commercetools/sync/commons/BaseSyncOptionsBuilder.html#batchSize-int-). It defines how many drafts can one batch contain.
34+
- or changing the draft [batch size](https://commercetools.github.io/commercetools-sync-java/v/1.9.0/com/commercetools/sync/commons/BaseSyncOptionsBuilder.html#batchSize-int-). It defines how many drafts can one batch contain.
3535

3636
The current overridable default [configuration](https://github.com/commercetools/commercetools-sync-java/tree/master/src/main/java/com/commercetools/sync/commons/utils/ClientConfigurationUtils.java#L45) of the `sphereClient`
3737
is the recommended good balance for stability and performance for the sync process.

docs/usage/INVENTORY_SYNC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ against a [InventoryEntryDraft](https://docs.commercetools.com/http-api-projects
3535
reference would return its `key`.
3636

3737
**Note**: When syncing from a source commercetools project, you can use this util which this library provides:
38-
[`replaceInventoriesReferenceIdsWithKeys`](https://commercetools.github.io/commercetools-sync-java/v/1.8.2/com/commercetools/sync/inventories/utils/InventoryReferenceReplacementUtils.html#replaceInventoriesReferenceIdsWithKeys-java.util.List-)
38+
[`replaceInventoriesReferenceIdsWithKeys`](https://commercetools.github.io/commercetools-sync-java/v/1.9.0/com/commercetools/sync/inventories/utils/InventoryReferenceReplacementUtils.html#replaceInventoriesReferenceIdsWithKeys-java.util.List-)
3939
that replaces the references id fields with keys, in order to make them ready for reference resolution by the sync:
4040
````java
4141
// Puts the keys in the reference id fields to prepare for reference resolution

docs/usage/PRODUCT_SYNC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ order for the sync to resolve the actual ids of those references, those `key`s h
4242
reference would return its `key`.
4343

4444
**Note**: When syncing from a source commercetools project, you can use this util which this library provides:
45-
[`replaceProductsReferenceIdsWithKeys`](https://commercetools.github.io/commercetools-sync-java/v/1.8.2/com/commercetools/sync/products/utils/ProductReferenceReplacementUtils.html#replaceProductsReferenceIdsWithKeys-java.util.List-)
45+
[`replaceProductsReferenceIdsWithKeys`](https://commercetools.github.io/commercetools-sync-java/v/1.9.0/com/commercetools/sync/products/utils/ProductReferenceReplacementUtils.html#replaceProductsReferenceIdsWithKeys-java.util.List-)
4646
that replaces the references id fields with keys, in order to make them ready for reference resolution by the sync:
4747
````java
4848
// Puts the keys in the reference id fields to prepare for reference resolution

docs/usage/PRODUCT_TYPE_SYNC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ references, those `key`s have to be supplied in the following way:
3939
reference would return its `key`.
4040

4141
**Note**: When syncing from a source commercetools project, you can use this util which this library provides:
42-
[`replaceProductTypesReferenceIdsWithKeys`](https://commercetools.github.io/commercetools-sync-java/v/1.8.2/com/commercetools/sync/producttypes/utils/ProductTypeReferenceReplacementUtils.html#replaceProductTypesReferenceIdsWithKeys-java.util.List-)
42+
[`replaceProductTypesReferenceIdsWithKeys`](https://commercetools.github.io/commercetools-sync-java/v/1.9.0/com/commercetools/sync/producttypes/utils/ProductTypeReferenceReplacementUtils.html#replaceProductTypesReferenceIdsWithKeys-java.util.List-)
4343
that replaces the references id fields with keys, in order to make them ready for reference resolution by the sync:
4444
````java
4545
// Puts the keys in the reference id fields to prepare for reference resolution

docs/usage/QUICK_START.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<dependency>
3838
<groupId>com.commercetools</groupId>
3939
<artifactId>commercetools-sync-java</artifactId>
40-
<version>1.8.2</version>
40+
<version>1.9.0</version>
4141
</dependency>
4242
````
4343
- For Gradle users:
@@ -48,7 +48,7 @@ implementation 'com.commercetools.sdk.jvm.core:commercetools-java-client:1.51.0'
4848
implementation 'com.commercetools.sdk.jvm.core:commercetools-convenience:1.51.0'
4949
5050
// Add commercetools-sync-java dependency.
51-
implementation 'com.commercetools:commercetools-sync-java:1.8.2'
51+
implementation 'com.commercetools:commercetools-sync-java:1.9.0'
5252
````
5353

5454
### 2. Setup Syncing Options
@@ -85,4 +85,5 @@ implementation 'com.commercetools:commercetools-sync-java:1.8.2'
8585
#### More Details
8686
*[Product Sync](PRODUCT_SYNC.md), [ProductType Sync](PRODUCT_TYPE_SYNC.md),
8787
[Category Sync](CATEGORY_SYNC.md), [Inventory Sync](INVENTORY_SYNC.md),
88-
[Type Sync](TYPE_SYNC.md), [CartDiscount Sync](CART_DISCOUNT_SYNC.md)*
88+
[Type Sync](TYPE_SYNC.md), [CartDiscount Sync](CART_DISCOUNT_SYNC.md),
89+
[TaxCategory Sync](/docs/usage/TAX_CATEGORY_SYNC.md)*

0 commit comments

Comments
 (0)