Skip to content

Commit 6f3613e

Browse files
committed
Merge branch 'master' into 172-Adjust-dependencies-configuration
# Conflicts: # docs/RELEASE_NOTES.md
2 parents bfc8c53 + c6dfbbb commit 6f3613e

20 files changed

Lines changed: 1740 additions & 1726 deletions

File tree

config/findbugs/findbugs-custom.xsl

Lines changed: 0 additions & 1196 deletions
This file was deleted.

docs/RELEASE_NOTES.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,34 +44,36 @@ are breaking changes. If there are, then a migration guide should be provided.
4444
[Javadoc](https://commercetools.github.io/commercetools-sync-java/v/v1.0.0-M3/) |
4545
[Jar](https://bintray.com/commercetools/maven/commercetools-sync-java/v1.0.0-M3)
4646
47-
**New Features** (1)
47+
**New Features** (7)
48+
- **ProductSync** - Support Product TaxCategory reference resolution and syncing. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120).
49+
- **ProductSync** - Support Product State reference resolution and syncing. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120).
50+
- **ProductSync** - Expose `ProductReferenceReplacementUtils#buildProductQuery` util to create a product query with all needed reference expansions to fetch products from a source CTP project for the sync. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120).
51+
- **ProductSync** - Expose `VariantReferenceReplacementUtils#replaceVariantsReferenceIdsWithKeys` which provides utils to replace reference ids with keys on variants (price and attriute references) coming from a source CTP project to make it ready for reference resolution. [#160](https://github.com/commercetools/commercetools-sync-java/issues/160).
52+
- **ProductSync** - Expose `VariantReferenceResolver` which is a helper that resolves the price and attriute references on a ProductVariantDraft. (Note: This is used now by the already existing ProductReferenceResolver) [#160](https://github.com/commercetools/commercetools-sync-java/issues/160).
53+
- **CategorySync** - Expose `CategoryReferenceReplacementUtils#buildCategoryQuery` util to create a category query with all needed reference expansions to fetch categories from a source CTP project for the sync. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120).
4854
- **Commons** - Expose `replaceCustomTypeIdWithKeys` and `replaceReferenceIdWithKey`. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120).
49-
- **ProductSync** - Expose `ProductReferenceReplancementUtils#buildProductQuery` util to create a product query with all needed reference expansions to fetch products from a source CTP project for the sync. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120).
50-
- **CategorySync** - Expose `CategoryReferenceReplancementUtils#buildCategoryQuery` util to create a category query with all needed reference expansions to fetch categories from a source CTP project for the sync. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120).
5155
5256
**Bug Fixes** (1)
5357
- **Category Sync** - Fixes an issue where retrying on concurrent modification exception wasn't re-fetching the latest
5458
Category and rebuilding build update actions. [#94](https://github.com/commercetools/commercetools-sync-java/issues/94)
5559
56-
**Doc Fixes** (4)
60+
**Doc Fixes** (5)
61+
- **Product Sync** - Document the reason behind having the latest batch processing time. [#119](https://github.com/commercetools/commercetools-sync-java/issues/119)
5762
- **Category Sync** - Document the reason behind having the latest batch processing time. [#119](https://github.com/commercetools/commercetools-sync-java/issues/119)
5863
- **Category Sync** - Fix the statistics summary string used in the documentation. [#119](https://github.com/commercetools/commercetools-sync-java/issues/119)
59-
- **Product Sync** - Document the reason behind having the latest batch processing time. [#119](https://github.com/commercetools/commercetools-sync-java/issues/119)
6064
- **Inventory Sync** - Document the reason behind having the latest batch processing time. [#119](https://github.com/commercetools/commercetools-sync-java/issues/119)
6165
- **Commons** - Provide inline example of how to use logging in callbacks. [#172](https://github.com/commercetools/commercetools-sync-java/issues/172)
6266
63-
**Compatibility notes** (8)
64-
- **Category Sync** - Move `replaceCategoriesReferenceIdsWithKeys` from `SyncUtils` to `CategoryReferenceReplacementUtils`. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120)
65-
- **Inventory Sync** - Move `replaceInventoriesReferenceIdsWithKeys` from `SyncUtils` to `InventoryReferenceReplacementUtils`. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120)
67+
**Compatibility notes** (9)
6668
- **Product Sync** - Move `replaceProductsReferenceIdsWithKeys` from `SyncUtils` to `ProductReferenceReplacementUtils`. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120)
67-
- **Product Sync** - Move `replaceProductDraftsCategoryReferenceIdsWithKeys` from `SyncUtils` to `ProductReferenceReplacementUtils`. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120)
68-
- **Product Sync** - Move `replaceProductDraftCategoryReferenceIdsWithKeys` from `SyncUtils` to `ProductReferenceReplacementUtils`. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120)
69-
- **Product Sync** - Move `replaceCategoryOrderHintCategoryIdsWithKeys` from `SyncUtils` to `ProductReferenceReplacementUtils`. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120)
70-
- **Product Sync** - Move `replaceProductDraftsCategoryReferenceIdsWithKeys` from `SyncUtils` to `ProductReferenceReplacementUtils`. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120)
69+
- **Product Sync** - Remove `replaceProductDraftsCategoryReferenceIdsWithKeys` which is not needed anymore. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120)
70+
- **Product Sync** - Remove `replaceProductDraftCategoryReferenceIdsWithKeys` which is not needed anymore. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120)
71+
- **Product Sync** - Remove `replaceCategoryOrderHintCategoryIdsWithKeys` which is not needed anymore. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120)
7172
- **Product Sync** - Move `getDraftBuilderFromStagedProduct` from `SyncUtils` to `ProductReferenceReplacementUtils`. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120)
73+
- **Category Sync** - Move `replaceCategoriesReferenceIdsWithKeys` from `SyncUtils` to `CategoryReferenceReplacementUtils`. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120)
74+
- **Inventory Sync** - Move `replaceInventoriesReferenceIdsWithKeys` from `SyncUtils` to `InventoryReferenceReplacementUtils`. [#120](https://github.com/commercetools/commercetools-sync-java/issues/120)
7275
- **Commons** - Remove slf4j-simple dependency. [#172](https://github.com/commercetools/commercetools-sync-java/issues/172)
7376
- **Commons** - Use implementation instead of compile configuration for dependencies. [#172](https://github.com/commercetools/commercetools-sync-java/issues/172)
74-
7577
-->
7678

7779
### v1.0.0-M2 - Oct 12, 2017

docs/usage/PRODUCT_SYNC.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,6 @@ More examples of those utils for different fields can be found [here](/src/integ
166166
## Caveats
167167
1. Products are either created or updated. Currently the tool does not support product deletion.
168168
2. The library doesn't sync product variant assets yet [#3](https://github.com/commercetools/commercetools-sync-java/issues/3), but it will not delete them.
169-
3. The library will sync all field types of product type attributes/custom fields, except `ReferenceType`. [#87](https://github.com/commercetools/commercetools-sync-java/issues/3).
169+
3. The library will not sync attribute field types with `ReferenceType` and `SetType` field definitions, except
170+
for Product references. (See more: [#87](https://github.com/commercetools/commercetools-sync-java/issues/87) [#160](https://github.com/commercetools/commercetools-sync-java/issues/87))
171+

gradle-scripts/findbugs.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ findbugs {
88
tasks.withType(FindBugs) {
99
reports {
1010
xml.enabled = false
11-
html.enabled = true
12-
html.stylesheet = resources.text.fromFile('config/findbugs/findbugs-custom.xsl')
1311
}
14-
}
12+
}
13+
14+
findbugsTest.mustRunAfter findbugsMain
15+
findbugsIntegrationTest.mustRunAfter findbugsTest
16+

gradle-scripts/pmd.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,15 @@ pmd {
66
toolVersion = pmdVersion
77
ruleSetConfig = rootProject.resources.text.fromFile('config/pmd/pmd.xml')
88
rulePriority = 2
9-
}
9+
consoleOutput = true
10+
}
11+
12+
tasks.withType(Pmd) {
13+
reports {
14+
html.enabled = false
15+
xml.enabled = false
16+
}
17+
}
18+
19+
pmdTest.mustRunAfter pmdMain
20+
pmdIntegrationTest.mustRunAfter pmdTest

0 commit comments

Comments
 (0)