Skip to content

Commit

Permalink
Use latest Sync-Java. (#320)
Browse files Browse the repository at this point in the history
* Use latest Sync-Java and use JVM-SDK dependencies from sync-Java.

* release preparation 4.0.8
  • Loading branch information
praveenkumarct authored Aug 25, 2021
1 parent cad48ee commit c6b96cf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Example:
##### Download

```bash
docker pull commercetools/commercetools-project-sync:4.0.7
docker pull commercetools/commercetools-project-sync:4.0.8
```
##### Run

Expand All @@ -215,14 +215,14 @@ docker run \
-e TARGET_PROJECT_KEY=xxxx \
-e TARGET_CLIENT_ID=xxxx \
-e TARGET_CLIENT_SECRET=xxxx \
commercetools/commercetools-project-sync:4.0.7 -s all
commercetools/commercetools-project-sync:4.0.8 -s all
```


### Examples
- To run the all sync modules from a source project to a target project
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s all
docker run commercetools/commercetools-project-sync:4.0.8 -s all
```
This will run the following sync modules in the given order:
1. `Type` Sync and `ProductType` Sync and `States` Sync and `TaxCategory` Sync and `CustomObject` Sync in parallel.
Expand All @@ -232,68 +232,68 @@ commercetools/commercetools-project-sync:4.0.7 -s all

- To run the type sync
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s types
docker run commercetools/commercetools-project-sync:4.0.8 -s types
```

- To run the productType sync
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s productTypes
docker run commercetools/commercetools-project-sync:4.0.8 -s productTypes
```

- To run the states sync
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s states
docker run commercetools/commercetools-project-sync:4.0.8 -s states
```
- To run the taxCategory sync
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s taxCategories
docker run commercetools/commercetools-project-sync:4.0.8 -s taxCategories
```

- To run the category sync
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s categories
docker run commercetools/commercetools-project-sync:4.0.8 -s categories
```

- To run the product sync
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s products
docker run commercetools/commercetools-project-sync:4.0.8 -s products
```

- To run the cartDiscount sync
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s cartDiscounts
docker run commercetools/commercetools-project-sync:4.0.8 -s cartDiscounts
```

- To run the inventoryEntry sync
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s inventoryEntries
docker run commercetools/commercetools-project-sync:4.0.8 -s inventoryEntries
```

- To run the customObject sync
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s customObjects
docker run commercetools/commercetools-project-sync:4.0.8 -s customObjects
```

- To run the customer sync
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s customers
docker run commercetools/commercetools-project-sync:4.0.8 -s customers
```

- To run the shoppingList sync
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s shoppingLists
docker run commercetools/commercetools-project-sync:4.0.8 -s shoppingLists
```
- To run both products and shoppingList sync
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s products shoppingLists
docker run commercetools/commercetools-project-sync:4.0.8 -s products shoppingLists
```

- To run type, productType and shoppingList sync
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s types productTypes shoppingLists
docker run commercetools/commercetools-project-sync:4.0.8 -s types productTypes shoppingLists
```

- To run all sync modules using a runner name
```bash
docker run commercetools/commercetools-project-sync:4.0.7 -s all -r myRunnerName
docker run commercetools/commercetools-project-sync:4.0.8 -s all -r myRunnerName
```
5 changes: 1 addition & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@ apply from: "$rootDir/gradle-scripts/set-library-version.gradle"


ext {
commercetoolsJvmSdkVersion = '2.0.0'
mockitoVersion = '3.11.2'
slf4jTestVersion = '1.2.0'
assertjVersion = '3.20.2'
pmdVersion = '5.6.1'
jacocoVersion = '0.8.6'
findbugsVersion = '3.0.1'
commercetoolsSyncJava = '6.0.0'
commercetoolsSyncJava = '7.0.0'
apacheCliVersion = '1.4'
jupiterApiVersion = '5.7.2'
asyncHttpClientVersion = '2.12.3'
Expand Down Expand Up @@ -69,8 +68,6 @@ tasks.withType(SpotlessTask) {
dependencies {
implementation "com.commercetools:commercetools-sync-java:${commercetoolsSyncJava}"

implementation "com.commercetools.sdk.jvm.core:commercetools-models:${commercetoolsJvmSdkVersion}"
implementation "com.commercetools.sdk.jvm.core:commercetools-java-client-ahc-2_5:${commercetoolsJvmSdkVersion}"
implementation "org.asynchttpclient:async-http-client:${asyncHttpClientVersion}"

implementation "commons-cli:commons-cli:${apacheCliVersion}"
Expand Down

0 comments on commit c6b96cf

Please sign in to comment.