Skip to content

Commit 040556a

Browse files
Migrate the minimum support to Java 11. (#840)
* Migrate the minimum support to Java 11.
1 parent 659fa38 commit 040556a

22 files changed

Lines changed: 68 additions & 66 deletions

.github/renovate.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,5 @@
77
"schedule": [
88
"every weekend"
99
],
10-
"groupName": "all",
11-
"packageRules": [
12-
{
13-
"matchPackageNames": ["com.github.ben-manes.caffeine:"],
14-
"allowedVersions": "< 3.0.0"
15-
},
16-
{
17-
"matchPackageNames": ["org.ajoberstar.git-publish:"],
18-
"allowedVersions": "< 4.0.0"
19-
},
20-
{
21-
"matchPackageNames": ["org.ajoberstar.grgit:"],
22-
"allowedVersions": "< 5.0.0"
23-
}
24-
]
10+
"groupName": "all"
2511
}

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Set up Java
4747
uses: actions/setup-java@v3
4848
with:
49-
java-version: 8
49+
java-version: 11
5050
distribution: 'zulu'
5151
- name: status
5252
run: echo Build is tagged. Uploading artifact ${{ steps.vars.outputs.tag }} to maven central.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v3
3030
- uses: actions/setup-java@v3
3131
with:
32-
java-version: 8
32+
java-version: 11
3333
distribution: 'zulu'
3434
- name: Build with Gradle
3535
run: ./gradlew clean setLibraryVersion test integrationTest jacocoTestCoverageVerification jacocoTestReport
@@ -41,4 +41,4 @@ jobs:
4141
TARGET_CLIENT_ID: ${{ secrets.TARGET_CLIENT_ID }}
4242
TARGET_CLIENT_SECRET: ${{ secrets.TARGET_CLIENT_SECRET }}
4343
- name: Codecov
44-
uses: codecov/codecov-action@v2
44+
uses: codecov/codecov-action@v3

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# commercetools sync
33
[![CI](https://github.com/commercetools/commercetools-sync-java/workflows/CI/badge.svg)](https://github.com/commercetools/commercetools-sync-java/actions?query=workflow%3ACI)
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 8.1.1](https://img.shields.io/badge/Benchmarks-8.1.1-orange.svg)](https://commercetools.github.io/commercetools-sync-java/benchmarks/)
6-
[![Download from Maven Central](https://img.shields.io/badge/Maven_Central-8.1.1-blue.svg)](https://search.maven.org/artifact/com.commercetools/commercetools-sync-java/8.1.1/jar)
7-
[![Javadoc](https://javadoc.io/badge2/com.commercetools/commercetools-sync-java/javadoc.svg?label=Javadoc)](https://commercetools.github.io/commercetools-sync-java/v/8.1.1/)
5+
[![Benchmarks 9.0.0](https://img.shields.io/badge/Benchmarks-9.0.0-orange.svg)](https://commercetools.github.io/commercetools-sync-java/benchmarks/)
6+
[![Download from Maven Central](https://img.shields.io/badge/Maven_Central-9.0.0-blue.svg)](https://search.maven.org/artifact/com.commercetools/commercetools-sync-java/9.0.0/jar)
7+
[![Javadoc](https://javadoc.io/badge2/com.commercetools/commercetools-sync-java/javadoc.svg?label=Javadoc)](https://commercetools.github.io/commercetools-sync-java/v/9.0.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
@@ -25,7 +25,7 @@ Supported resources: [Categories](/docs/usage/CATEGORY_SYNC.md), [Products](/doc
2525
- [SBT](#sbt)
2626
- [Ivy](#ivy)
2727
- [Release Notes](/docs/RELEASE_NOTES.md)
28-
- [Javadoc](https://commercetools.github.io/commercetools-sync-java/v/8.1.1/)
28+
- [Javadoc](https://commercetools.github.io/commercetools-sync-java/v/9.0.0/)
2929
- [Benchmarks](https://commercetools.github.io/commercetools-sync-java/benchmarks/)
3030

3131
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -45,8 +45,8 @@ Notes:
4545

4646
### Prerequisites
4747

48-
- Library requires the min JDK version `>= 8`.
49-
> The library tested with each major JDK version (i.e: 8, 9, 10, 11, 12, 13...) as well as some specific updates of LTS versions (i.e: 8.0.192, 11.0.3).
48+
- Library requires the min JDK version `>= 11`.
49+
> The library tested with each major JDK version (i.e: 11, 12, 13...) as well as some specific updates of LTS versions (i.e: 11.0.3 and above).
5050
- A target commercetools project for syncing your source data to.
5151

5252
### Installation
@@ -60,26 +60,26 @@ Here are the most popular ones:
6060
<dependency>
6161
<groupId>com.commercetools</groupId>
6262
<artifactId>commercetools-sync-java</artifactId>
63-
<version>8.1.1</version>
63+
<version>9.0.0</version>
6464
</dependency>
6565
````
6666

6767
#### Gradle
6868

6969
````groovy
70-
implementation 'com.commercetools:commercetools-sync-java:8.1.1'
70+
implementation 'com.commercetools:commercetools-sync-java:9.0.0'
7171
````
7272

7373
#### SBT
7474

7575
````
76-
libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "8.1.1"
76+
libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "9.0.0"
7777
````
7878

7979
#### Ivy
8080

8181
````xml
82-
<dependency org="com.commercetools" name="commercetools-sync-java" rev="8.1.1"/>
82+
<dependency org="com.commercetools" name="commercetools-sync-java" rev="9.0.0"/>
8383
````
8484

8585
**Note**: To avoid `commercetools JVM SDK` libraries version mismatch between projects.

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
2-
id 'org.ajoberstar.git-publish' version '3.0.1'
2+
id 'org.ajoberstar.git-publish' version '4.1.0'
33
id 'com.adarshr.test-logger' version '3.2.0'
4-
id 'org.ajoberstar.grgit' version '4.1.1'
4+
id 'org.ajoberstar.grgit' version '5.0.0'
55
id "com.github.ben-manes.versions" version '0.42.0'
66
id 'ru.vyarus.mkdocs' version '2.4.0'
77
id "com.github.spotbugs" version "5.0.9"
@@ -15,8 +15,8 @@ ext{
1515
jupiterApiVersion = '5.9.0'
1616
assertjVersion = '3.23.1'
1717
pmdVersion = '6.14.0'
18-
jacocoVersion = '0.8.4'
19-
caffeineVersion = '2.9.3'
18+
jacocoVersion = '0.8.8'
19+
caffeineVersion = '3.1.1'
2020
nexusStagingPluginVersion = '0.22.0'
2121
commonTextVersion = '1.9'
2222
}

docs/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# commercetools sync
33
[![CI](https://github.com/commercetools/commercetools-sync-java/workflows/CI/badge.svg)](https://github.com/commercetools/commercetools-sync-java/actions?query=workflow%3ACI)
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 8.1.1](https://img.shields.io/badge/Benchmarks-8.1.1-orange.svg)](https://commercetools.github.io/commercetools-sync-java/benchmarks/)
6-
[![Download from Maven Central](https://img.shields.io/badge/Maven_Central-8.1.1-blue.svg)](https://search.maven.org/artifact/com.commercetools/commercetools-sync-java/8.1.1/jar)
7-
[![Javadoc](https://javadoc.io/badge2/com.commercetools/commercetools-sync-java/javadoc.svg?label=Javadoc)](https://commercetools.github.io/commercetools-sync-java/v/8.1.1/)
5+
[![Benchmarks 9.0.0](https://img.shields.io/badge/Benchmarks-9.0.0-orange.svg)](https://commercetools.github.io/commercetools-sync-java/benchmarks/)
6+
[![Download from Maven Central](https://img.shields.io/badge/Maven_Central-9.0.0-blue.svg)](https://search.maven.org/artifact/com.commercetools/commercetools-sync-java/9.0.0/jar)
7+
[![Javadoc](https://javadoc.io/badge2/com.commercetools/commercetools-sync-java/javadoc.svg?label=Javadoc)](https://commercetools.github.io/commercetools-sync-java/v/9.0.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

@@ -40,18 +40,18 @@ Here are the most popular ones:
4040
<dependency>
4141
<groupId>com.commercetools</groupId>
4242
<artifactId>commercetools-sync-java</artifactId>
43-
<version>8.1.1</version>
43+
<version>9.0.0</version>
4444
</dependency>
4545
````
4646
#### Gradle
4747
````groovy
48-
implementation 'com.commercetools:commercetools-sync-java:8.1.1'
48+
implementation 'com.commercetools:commercetools-sync-java:9.0.0'
4949
````
5050
#### SBT
5151
````
52-
libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "8.1.1"
52+
libraryDependencies += "com.commercetools" % "commercetools-sync-java" % "9.0.0"
5353
````
5454
#### Ivy
5555
````xml
56-
<dependency org="com.commercetools" name="commercetools-sync-java" rev="8.1.1"/>
56+
<dependency org="com.commercetools" name="commercetools-sync-java" rev="9.0.0"/>
5757
````

docs/RELEASE_NOTES.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@
2727
7. Add Migration guide section which specifies explicitly if there are breaking changes and how to tackle them.
2828
-->
2929

30+
### 9.0.0 - Aug 8, 2022
31+
[Commits](https://github.com/commercetools/commercetools-sync-java/compare/8.1.1...9.0.0) |
32+
[Javadoc](https://commercetools.github.io/commercetools-sync-java/v/9.0.0/) |
33+
[Jar](https://search.maven.org/artifact/com.commercetools/commercetools-sync-java/9.0.0/jar)
34+
35+
- 🚧 **Breaking Changes** (1)
36+
- Minimum Java 11 or above is required [#840](https://github.com/commercetools/commercetools-sync-java/pull/840)
37+
38+
-**Build Tools**
39+
- Migrated `org.ajoberstar.grgit` plugin from `4.1.1` to [`5.0.0`](https://github.com/ajoberstar/grgit/releases/tag/5.0.0).
40+
- Migrated `org.ajoberstar.git-publish` plugin from `3.0.1` to [`4.1.0`](https://github.com/ajoberstar/gradle-git-publish/releases/tag/4.1.0).
41+
42+
- 🛠️ **Dependency Updates**
43+
- `commercetools-jvm-sdk` `2.6.0` -> [`2.9.0`](https://github.com/commercetools/commercetools-jvm-sdk/releases/tag/v2.9.0)
44+
- `caffeineVersion` `2.9.3` -> [`3.1.1`](https://github.com/ben-manes/caffeine/releases/tag/v3.1.1)
45+
3046
### 8.1.1 - Mar 21, 2022
3147
[Commits](https://github.com/commercetools/commercetools-sync-java/compare/8.1.0...8.1.1) |
3248
[Javadoc](https://commercetools.github.io/commercetools-sync-java/v/8.1.1/) |

docs/usage/CART_DISCOUNT_SYNC.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ against a [CartDiscountDraft](https://docs.commercetools.com/http-api-projects-c
3636

3737
#### SphereClient
3838

39-
Use the [ClientConfigurationUtils](https://github.com/commercetools/commercetools-sync-java/blob/8.1.1/src/main/java/com/commercetools/sync/commons/utils/ClientConfigurationUtils.java#L45) which apply the best practices for `SphereClient` creation.
39+
Use the [ClientConfigurationUtils](https://github.com/commercetools/commercetools-sync-java/blob/9.0.0/src/main/java/com/commercetools/sync/commons/utils/ClientConfigurationUtils.java#L45) which apply the best practices for `SphereClient` creation.
4040
If you have custom requirements for the sphere client creation, have a look into the [Important Usage Tips](IMPORTANT_USAGE_TIPS.md).
4141

4242
````java
@@ -67,7 +67,7 @@ Therefore, in order to resolve the actual ids of those references in the sync pr
6767
6868
##### Syncing from a commercetools project
6969

70-
When syncing from a source commercetools project, you can use [`toCartDiscountDrafts`](https://commercetools.github.io/commercetools-sync-java/v/8.1.1/com/commercetools/sync/cartdiscounts/utils/CartDiscountTransformUtils.html#toCartDiscountDrafts-java.util.List-)
70+
When syncing from a source commercetools project, you can use [`toCartDiscountDrafts`](https://commercetools.github.io/commercetools-sync-java/v/9.0.0/com/commercetools/sync/cartdiscounts/utils/CartDiscountTransformUtils.html#toCartDiscountDrafts-java.util.List-)
7171
method that transforms(resolves by querying and caching key-id pairs) and maps from a `CartDiscount` to `CartDiscountDraft` using cache in order to make them ready for reference resolution by the sync, for example:
7272

7373
````java

docs/usage/CATEGORY_SYNC.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ against a [CategoryDraft](https://docs.commercetools.com/http-api-projects-categ
3636

3737
#### SphereClient
3838

39-
Use the [ClientConfigurationUtils](https://github.com/commercetools/commercetools-sync-java/blob/8.1.1/src/main/java/com/commercetools/sync/commons/utils/ClientConfigurationUtils.java#L45) which apply the best practices for `SphereClient` creation.
39+
Use the [ClientConfigurationUtils](https://github.com/commercetools/commercetools-sync-java/blob/9.0.0/src/main/java/com/commercetools/sync/commons/utils/ClientConfigurationUtils.java#L45) which apply the best practices for `SphereClient` creation.
4040
If you have custom requirements for the sphere client creation, have a look into the [Important Usage Tips](IMPORTANT_USAGE_TIPS.md).
4141

4242
````java
@@ -135,7 +135,7 @@ As soon, as the referenced parent Category draft is supplied to the sync, the dr
135135

136136
##### Syncing from a commercetools project
137137

138-
When syncing from a source commercetools project, you can use [`toCategoryDrafts`](https://commercetools.github.io/commercetools-sync-java/v/8.1.1/com/commercetools/sync/categories/utils/CategoryTransformUtils.html#toCategoryDrafts-java.util.List-)
138+
When syncing from a source commercetools project, you can use [`toCategoryDrafts`](https://commercetools.github.io/commercetools-sync-java/v/9.0.0/com/commercetools/sync/categories/utils/CategoryTransformUtils.html#toCategoryDrafts-java.util.List-)
139139
method that transforms(resolves by querying and caching key-id pairs) and maps from a `Category` to `CategoryDraft` using cache in order to make them ready for reference resolution by the sync, for example:
140140

141141
````java

docs/usage/CUSTOMER_SYNC.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ against a [CustomerDraft](https://docs.commercetools.com/api/projects/customers#
3535
### Prerequisites
3636
#### SphereClient
3737

38-
Use the [ClientConfigurationUtils](https://github.com/commercetools/commercetools-sync-java/blob/8.1.1/src/main/java/com/commercetools/sync/commons/utils/ClientConfigurationUtils.java#L45) which apply the best practices for `SphereClient` creation.
38+
Use the [ClientConfigurationUtils](https://github.com/commercetools/commercetools-sync-java/blob/9.0.0/src/main/java/com/commercetools/sync/commons/utils/ClientConfigurationUtils.java#L45) which apply the best practices for `SphereClient` creation.
3939
If you have custom requirements for the sphere client creation, have a look into the [Important Usage Tips](IMPORTANT_USAGE_TIPS.md).
4040

4141
````java
@@ -69,7 +69,7 @@ Therefore, in order to resolve the actual ids of those references in the sync pr
6969
7070
##### Syncing from a commercetools project
7171

72-
When syncing from a source commercetools project, you can use [`toCustomerDrafts`](https://commercetools.github.io/commercetools-sync-java/v/8.1.1/com/commercetools/sync/customers/utils/CustomerTransformUtils.html#toCustomerDrafts-java.util.List-)
72+
When syncing from a source commercetools project, you can use [`toCustomerDrafts`](https://commercetools.github.io/commercetools-sync-java/v/9.0.0/com/commercetools/sync/customers/utils/CustomerTransformUtils.html#toCustomerDrafts-java.util.List-)
7373
method that transforms(resolves by querying and caching key-id pairs) and maps from a `Customer` to `CustomerDraft` using cache in order to make them ready for reference resolution by the sync, for example:
7474

7575
````java

0 commit comments

Comments
 (0)