Skip to content

Commit b31f79d

Browse files
Merge pull request #270 from commercetools/m11-release-prep
v1.0.0-M11 release prep
2 parents 14c32aa + 156985e commit b31f79d

3 files changed

Lines changed: 19 additions & 21 deletions

File tree

README.md

Lines changed: 7 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 M10](https://img.shields.io/badge/Benchmarks-M10-orange.svg)](https://commercetools.github.io/commercetools-sync-java/benchmarks/)
5+
[![Benchmarks M11](https://img.shields.io/badge/Benchmarks-M11-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/v1.0.0-M10/)
7+
[![Javadoc](http://javadoc-badge.appspot.com/com.commercetools/commercetools-sync-java.svg?label=Javadoc)](https://commercetools.github.io/commercetools-sync-java/v/v1.0.0-M11/)
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
Java API which exposes utilities for building update actions and automatic syncing of CTP data from external sources
@@ -22,7 +22,7 @@ Java API which exposes utilities for building update actions and automatic synci
2222
- [Ivy](#ivy)
2323
- [Roadmap](#roadmap)
2424
- [Release Notes](/docs/RELEASE_NOTES.md)
25-
- [Javadoc](https://commercetools.github.io/commercetools-sync-java/v/v1.0.0-M10/)
25+
- [Javadoc](https://commercetools.github.io/commercetools-sync-java/v/v1.0.0-M11/)
2626
- [Benchmarks](https://commercetools.github.io/commercetools-sync-java/benchmarks/)
2727

2828
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -58,20 +58,20 @@ most popular ones:
5858
<dependency>
5959
<groupId>com.commercetools</groupId>
6060
<artifactId>commercetools-sync-java</artifactId>
61-
<version>v1.0.0-M10</version>
61+
<version>v1.0.0-M11</version>
6262
</dependency>
6363
````
6464
#### Gradle
6565
````groovy
66-
implementation 'com.commercetools:commercetools-sync-java:v1.0.0-M10'
66+
implementation 'com.commercetools:commercetools-sync-java:v1.0.0-M11'
6767
````
6868
#### SBT
6969
````
70-
libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "v1.0.0-M10"
70+
libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "v1.0.0-M11"
7171
````
7272
#### Ivy
7373
````xml
74-
<dependency org="com.commercetools" name="commercetools-sync-java" rev="v1.0.0-M10"/>
74+
<dependency org="com.commercetools" name="commercetools-sync-java" rev="v1.0.0-M11"/>
7575
````
7676

7777

gradle-scripts/dependencies.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
ext{
2-
commercetoolsJvmSdkVersion = '1.29.0'
3-
mockitoVersion = '2.13.0'
2+
commercetoolsJvmSdkVersion = '1.30.0'
3+
mockitoVersion = '2.15.0'
44
jUnitVersion = '4.12'
5-
assertjVersion = '3.9.0'
5+
assertjVersion = '3.9.1'
66
checkstyleVersion = '7.7'
7-
pmdVersion = '5.6.1'
7+
pmdVersion = '5.8.1'
88
jacocoVersion = '0.8.0'
99
findbugsVersion = '3.0.1'
1010
}

src/integration-test/java/com/commercetools/sync/integration/commons/utils/ProductTypeITUtils.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import io.sphere.sdk.client.SphereClient;
44
import io.sphere.sdk.models.LocalizedString;
5-
import io.sphere.sdk.products.attributes.AttributeDefinition;
6-
import io.sphere.sdk.products.attributes.AttributeDefinitionBuilder;
5+
import io.sphere.sdk.products.attributes.AttributeDefinitionDraft;
6+
import io.sphere.sdk.products.attributes.AttributeDefinitionDraftBuilder;
77
import io.sphere.sdk.products.attributes.BooleanAttributeType;
88
import io.sphere.sdk.products.attributes.LocalizedStringAttributeType;
99
import io.sphere.sdk.producttypes.ProductType;
@@ -62,7 +62,7 @@ public static void createProductType(@Nonnull final String productTypeKey,
6262
@Nonnull final SphereClient ctpClient) {
6363
if (!productTypeExists(productTypeKey, ctpClient)) {
6464
final ProductTypeDraft productTypeDraft = ProductTypeDraftBuilder
65-
.of(productTypeKey, name, "description", buildAttributeDefinitions(locale))
65+
.of(productTypeKey, name, "description", buildAttributeDefinitionDrafts(locale))
6666
.build();
6767
ctpClient.execute(ProductTypeCreateCommand.of(productTypeDraft)).toCompletableFuture().join();
6868
}
@@ -114,14 +114,12 @@ public static ProductType createProductType(@Nonnull final String jsonResourcePa
114114
* @param locale defines the locale for which the field definition names are going to be bound to.
115115
* @return the list of field definitions.
116116
*/
117-
private static List<AttributeDefinition> buildAttributeDefinitions(@Nonnull final Locale locale) {
117+
private static List<AttributeDefinitionDraft> buildAttributeDefinitionDrafts(@Nonnull final Locale locale) {
118118
return asList(
119-
AttributeDefinitionBuilder.of(LOCALISED_STRING_ATTRIBUTE_NAME,
120-
LocalizedString.of(locale, LOCALISED_STRING_ATTRIBUTE_NAME), LocalizedStringAttributeType.of())
121-
.build(),
122-
AttributeDefinitionBuilder.of(BOOLEAN_ATTRIBUTE_NAME,
123-
LocalizedString.of(locale, BOOLEAN_ATTRIBUTE_NAME), BooleanAttributeType.of())
124-
.build()
119+
AttributeDefinitionDraftBuilder.of(LocalizedStringAttributeType.of(), LOCALISED_STRING_ATTRIBUTE_NAME,
120+
LocalizedString.of(locale, LOCALISED_STRING_ATTRIBUTE_NAME), false).build(),
121+
AttributeDefinitionDraftBuilder.of(BooleanAttributeType.of(), BOOLEAN_ATTRIBUTE_NAME,
122+
LocalizedString.of(locale, BOOLEAN_ATTRIBUTE_NAME), false).build()
125123
);
126124

127125
}

0 commit comments

Comments
 (0)