Skip to content

Commit 5fc2297

Browse files
Support JDK17 for CI enviroment #13868 (#613)
* Support JDK17 for CI enviroment #13868 * updated maven profile for jdk17 * Fix CI: Update Checkstyle Plugin to v3.6.0 and Ensure Compatibility * fix CI * Added chekstle header file * Muted header file for checktyle * Disable Jacoco coverage reporting in CI workflows * jacoco vesion change * Fix indentation issue in GitHub Actions workflow * Fix Codecov upload issue * fix(ci): Improve GitHub Actions workflow for CI and Codecov * revert build-and-test-pr changes --------- Co-authored-by: xiaosheng <[email protected]>
1 parent f1271e6 commit 5fc2297

File tree

56 files changed

+283
-197
lines changed

Some content is hidden

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

56 files changed

+283
-197
lines changed

.github/workflows/build-and-test-pr.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
uses: apache/[email protected]
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
- name: "Set up JDK 21"
32+
- name: "Set up JDK 17"
3333
uses: actions/setup-java@v4
3434
with:
3535
distribution: 'zulu'
36-
java-version: 21
36+
java-version: 17
3737
- name: Restore Maven local repository cache
3838
uses: actions/cache@v4
3939
with:
@@ -70,11 +70,11 @@ jobs:
7070
repository: 'apache/dubbo'
7171
ref: '3.2'
7272
path: dubbo
73-
- name: "Set up JDK 21"
73+
- name: "Set up JDK 17"
7474
uses: actions/setup-java@v4
7575
with:
7676
distribution: 'zulu'
77-
java-version: 21
77+
java-version: 17
7878
- uses: actions/cache@v4
7979
name: "Cache local Maven repository"
8080
with:
@@ -102,7 +102,7 @@ jobs:
102102
- uses: actions/setup-java@v4
103103
with:
104104
distribution: 'zulu'
105-
java-version: 8
105+
java-version: 17
106106
- uses: actions/cache@v4
107107
name: "Cache local Maven repository"
108108
with:
@@ -217,7 +217,7 @@ jobs:
217217
strategy:
218218
matrix:
219219
os: [ ubuntu-latest, windows-latest ]
220-
jdk: [ 8, 11 ]
220+
jdk: [17]
221221
fail-fast: false
222222
env:
223223
DISABLE_FILE_SYSTEM_TEST: true
@@ -235,7 +235,7 @@ jobs:
235235
uses: actions/setup-java@v4
236236
with:
237237
distribution: 'zulu'
238-
java-version: 8
238+
java-version: 17
239239
- uses: actions/cache@v4
240240
name: "Cache local Maven repository"
241241
with:

.github/workflows/build-and-test-scheduled-3.0.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
uses: apache/[email protected]
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
- name: "Set up JDK 21"
37+
- name: "Set up JDK 17"
3838
uses: actions/setup-java@v4
3939
with:
4040
distribution: 'zulu'
41-
java-version: 21
41+
java-version: 17
4242
- name: Restore Maven local repository cache
4343
uses: actions/cache@v4
4444
with:
@@ -75,11 +75,11 @@ jobs:
7575
repository: 'apache/dubbo'
7676
ref: '3.0'
7777
path: dubbo
78-
- name: "Set up JDK 21"
78+
- name: "Set up JDK 17"
7979
uses: actions/setup-java@v4
8080
with:
8181
distribution: 'zulu'
82-
java-version: 21
82+
java-version: 17
8383
- uses: actions/cache@v4
8484
name: "Cache local Maven repository"
8585
with:
@@ -108,7 +108,7 @@ jobs:
108108
- uses: actions/setup-java@v4
109109
with:
110110
distribution: 'zulu'
111-
java-version: 8
111+
java-version: 17
112112
- uses: actions/cache@v4
113113
name: "Cache local Maven repository"
114114
with:
@@ -223,7 +223,7 @@ jobs:
223223
strategy:
224224
matrix:
225225
os: [ ubuntu-latest, windows-latest ]
226-
jdk: [ 8, 11 ]
226+
jdk: [17]
227227
fail-fast: false
228228
env:
229229
DISABLE_FILE_SYSTEM_TEST: true
@@ -241,7 +241,7 @@ jobs:
241241
uses: actions/setup-java@v4
242242
with:
243243
distribution: 'zulu'
244-
java-version: 8
244+
java-version: 17
245245
- uses: actions/cache@v4
246246
name: "Cache local Maven repository"
247247
with:

.github/workflows/build-and-test-scheduled-3.1.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
uses: apache/[email protected]
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
- name: "Set up JDK 21"
37+
- name: "Set up JDK 17"
3838
uses: actions/setup-java@v4
3939
with:
4040
distribution: 'zulu'
41-
java-version: 21
41+
java-version: 17
4242
- name: Restore Maven local repository cache
4343
uses: actions/cache@v4
4444
with:
@@ -75,11 +75,11 @@ jobs:
7575
repository: 'apache/dubbo'
7676
ref: '3.1'
7777
path: dubbo
78-
- name: "Set up JDK 21"
78+
- name: "Set up JDK 17"
7979
uses: actions/setup-java@v4
8080
with:
8181
distribution: 'zulu'
82-
java-version: 21
82+
java-version: 17
8383
- uses: actions/cache@v4
8484
name: "Cache local Maven repository"
8585
with:
@@ -108,7 +108,7 @@ jobs:
108108
- uses: actions/setup-java@v4
109109
with:
110110
distribution: 'zulu'
111-
java-version: 8
111+
java-version: 17
112112
- uses: actions/cache@v4
113113
name: "Cache local Maven repository"
114114
with:
@@ -223,7 +223,7 @@ jobs:
223223
strategy:
224224
matrix:
225225
os: [ ubuntu-latest, windows-latest ]
226-
jdk: [ 8, 11 ]
226+
jdk: [17]
227227
fail-fast: false
228228
env:
229229
DISABLE_FILE_SYSTEM_TEST: true
@@ -241,7 +241,7 @@ jobs:
241241
uses: actions/setup-java@v4
242242
with:
243243
distribution: 'zulu'
244-
java-version: 8
244+
java-version: 17
245245
- uses: actions/cache@v4
246246
name: "Cache local Maven repository"
247247
with:

.github/workflows/build-and-test-scheduled-3.2.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
uses: apache/[email protected]
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
- name: "Set up JDK 21"
37+
- name: "Set up JDK 17"
3838
uses: actions/setup-java@v4
3939
with:
4040
distribution: 'zulu'
41-
java-version: 21
41+
java-version: 17
4242
- name: Restore Maven local repository cache
4343
uses: actions/cache@v4
4444
with:
@@ -75,11 +75,11 @@ jobs:
7575
repository: 'apache/dubbo'
7676
ref: '3.2'
7777
path: dubbo
78-
- name: "Set up JDK 21"
78+
- name: "Set up JDK 17"
7979
uses: actions/setup-java@v4
8080
with:
8181
distribution: 'zulu'
82-
java-version: 21
82+
java-version: 17
8383
- uses: actions/cache@v4
8484
name: "Cache local Maven repository"
8585
with:
@@ -108,7 +108,7 @@ jobs:
108108
- uses: actions/setup-java@v4
109109
with:
110110
distribution: 'zulu'
111-
java-version: 8
111+
java-version: 17
112112
- uses: actions/cache@v4
113113
name: "Cache local Maven repository"
114114
with:
@@ -223,7 +223,7 @@ jobs:
223223
strategy:
224224
matrix:
225225
os: [ ubuntu-latest, windows-latest ]
226-
jdk: [ 8, 11 ]
226+
jdk: [17]
227227
fail-fast: false
228228
env:
229229
DISABLE_FILE_SYSTEM_TEST: true
@@ -241,7 +241,7 @@ jobs:
241241
uses: actions/setup-java@v4
242242
with:
243243
distribution: 'zulu'
244-
java-version: 8
244+
java-version: 17
245245
- uses: actions/cache@v4
246246
name: "Cache local Maven repository"
247247
with:

.github/workflows/build-and-test-scheduled-3.3.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
uses: apache/[email protected]
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
- name: "Set up JDK 21"
37+
- name: "Set up JDK 17"
3838
uses: actions/setup-java@v4
3939
with:
4040
distribution: 'zulu'
41-
java-version: 21
41+
java-version: 17
4242
- name: Restore Maven local repository cache
4343
uses: actions/cache@v4
4444
with:
@@ -75,11 +75,11 @@ jobs:
7575
repository: 'apache/dubbo'
7676
ref: '3.2'
7777
path: dubbo
78-
- name: "Set up JDK 21"
78+
- name: "Set up JDK 17"
7979
uses: actions/setup-java@v4
8080
with:
8181
distribution: 'zulu'
82-
java-version: 21
82+
java-version: 17
8383
- uses: actions/cache@v4
8484
name: "Cache local Maven repository"
8585
with:
@@ -108,7 +108,7 @@ jobs:
108108
- uses: actions/setup-java@v4
109109
with:
110110
distribution: 'zulu'
111-
java-version: 8
111+
java-version: 17
112112
- uses: actions/cache@v4
113113
name: "Cache local Maven repository"
114114
with:
@@ -223,7 +223,7 @@ jobs:
223223
strategy:
224224
matrix:
225225
os: [ ubuntu-latest, windows-latest ]
226-
jdk: [ 8, 11 ]
226+
jdk: [17]
227227
fail-fast: false
228228
env:
229229
DISABLE_FILE_SYSTEM_TEST: true
@@ -241,7 +241,7 @@ jobs:
241241
uses: actions/setup-java@v4
242242
with:
243243
distribution: 'zulu'
244-
java-version: 8
244+
java-version: 17
245245
- uses: actions/cache@v4
246246
name: "Cache local Maven repository"
247247
with:

.github/workflows/build-and-test-scheduled-main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
uses: apache/[email protected]
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
- name: "Set up JDK 21"
37+
- name: "Set up JDK 17"
3838
uses: actions/setup-java@v4
3939
with:
4040
distribution: 'zulu'
41-
java-version: 21
41+
java-version: 17
4242
- name: Restore Maven local repository cache
4343
uses: actions/cache@v4
4444
with:
@@ -75,11 +75,11 @@ jobs:
7575
repository: 'apache/dubbo'
7676
ref: '3.2'
7777
path: dubbo
78-
- name: "Set up JDK 21"
78+
- name: "Set up JDK 17"
7979
uses: actions/setup-java@v4
8080
with:
8181
distribution: 'zulu'
82-
java-version: 21
82+
java-version: 17
8383
- uses: actions/cache@v4
8484
name: "Cache local Maven repository"
8585
with:
@@ -108,7 +108,7 @@ jobs:
108108
- uses: actions/setup-java@v4
109109
with:
110110
distribution: 'zulu'
111-
java-version: 8
111+
java-version: 17
112112
- uses: actions/cache@v4
113113
name: "Cache local Maven repository"
114114
with:
@@ -120,7 +120,7 @@ jobs:
120120
- name: "Compile Dubbo-SPI-Extensions (Linux)"
121121
run: |
122122
cd ./dubbo-spi-extensions
123-
./mvnw --batch-mode --no-snapshot-updates -e --no-transfer-progress --fail-fast -T 2C clean compile -DskipTests=true -DskipIntegrationTests=true -Dcheckstyle.skip=true -Dcheckstyle_unix.skip=true -Drat.skip=true -Dmaven.javadoc.skip=true
123+
./mvnw --batch-mode --no-snapshot-updates -e --no-transfer-progress --fail-fast -T 2C clean compile -DskipIntegrationTests=true -Dcheckstyle.skip=true -Dcheckstyle_unix.skip=true -Drat.skip=true -Dmaven.javadoc.skip=true
124124
- name: "Build Dubbo-SPI-Extensions with Maven"
125125
run: |
126126
cd ./dubbo-spi-extensions
@@ -208,7 +208,7 @@ jobs:
208208
strategy:
209209
matrix:
210210
os: [ ubuntu-latest, windows-latest ]
211-
jdk: [ 8, 11 ]
211+
jdk: [17]
212212
fail-fast: false
213213
env:
214214
DISABLE_FILE_SYSTEM_TEST: true
@@ -226,7 +226,7 @@ jobs:
226226
uses: actions/setup-java@v4
227227
with:
228228
distribution: 'zulu'
229-
java-version: 8
229+
java-version: 17
230230
- uses: actions/cache@v4
231231
name: "Cache local Maven repository"
232232
with:

.github/workflows/conformance.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
# - name: "Build tools"
4747
# run: |
4848
# cd ./dubbo
49-
# ./mvnw --batch-mode -U -e --no-transfer-progress install -pl dubbo-build-tools -am -DskipTests=true
49+
# ./mvnw --batch-mode -U -e --no-transfer-progress install -pl dubbo-build-tools -am
5050
# - name: "Build with Maven"
51-
# run: |
52-
# cd ./dubbo-spi-extensions
53-
# ./mvnw --batch-mode -U -e --no-transfer-progress install -am -DskipTests=true
51+
# run: |
52+
# cd ./dubbo-spi-extensions
53+
# ./mvnw --batch-mode -U -e --no-transfer-progress install -am
5454
#
5555
#
5656
# testjob:
@@ -63,7 +63,7 @@
6363
# fail-fast: false
6464
# matrix:
6565
# # use the unsafe only run on the jdk8
66-
# java: [ 8 ]
66+
# java: [ 17 ]
6767
# #testjob id list MUST match 'JOB_COUNT' of 'prepare_test'
6868
# job_id: [ 1,2,3 ]
6969
# steps:

0 commit comments

Comments
 (0)