File tree Expand file tree Collapse file tree 2 files changed +25
-7
lines changed Expand file tree Collapse file tree 2 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 55
55
restore-keys : |
56
56
${{ runner.os }}-m2
57
57
- name : Test with Maven
58
- if : ${{ matrix.java == '8' }}
59
58
run : ./mvnw test -B -Dmaven.test.skip=false
60
- - name : Test with Maven
61
- if : ${{ matrix.java != '8' }}
62
- run : ./mvnw test -B -Dmaven.test.skip=false -DargLine="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED"
63
59
- name : Publish Unit Test Results
64
60
uses : EnricoMi/publish-unit-test-result-action@v2
65
61
if : (!cancelled())
Original file line number Diff line number Diff line change 228
228
<artifactId >maven-surefire-plugin</artifactId >
229
229
<version >${maven-surefire-plugin.version} </version >
230
230
<configuration >
231
- <argLine >${argLine} -Dfile.encoding=UTF-8</argLine >
231
+ <argLine >
232
+ ${argLine} ${surefireArgLine}
233
+ </argLine >
232
234
</configuration >
233
235
<!-- please add below configuration if you are using JDK 9 or higher-->
234
236
<!-- <configuration>-->
413
415
</indent >
414
416
</java >
415
417
<pom >
416
- <trimTrailingWhitespace />
417
- <endWithNewline />
418
+ <trimTrailingWhitespace />
419
+ <endWithNewline />
418
420
<indent >
419
421
<spaces >true</spaces >
420
422
<spacesPerTab >4</spacesPerTab >
445
447
</plugin >
446
448
</plugins >
447
449
</build >
450
+ <profiles >
451
+ <profile >
452
+ <id >jdk9plus</id >
453
+ <activation >
454
+ <jdk >[9,)</jdk >
455
+ </activation >
456
+ <properties >
457
+ <surefireArgLine >--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED -Dfile.encoding=UTF-8</surefireArgLine >
458
+ </properties >
459
+ </profile >
460
+ <profile >
461
+ <id >jdk8</id >
462
+ <activation >
463
+ <jdk >1.8</jdk >
464
+ </activation >
465
+ <properties >
466
+ <surefireArgLine > -Dfile.encoding=UTF-8</surefireArgLine >
467
+ </properties >
468
+ </profile >
469
+ </profiles >
448
470
</project >
You can’t perform that action at this time.
0 commit comments