Skip to content

Commit 57d462d

Browse files
committed
Run tests also with Java 20
1 parent 3bbc545 commit 57d462d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/maven.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
matrix:
2727
os: [ubuntu-latest,windows-latest, macOS-latest]
28-
java: [8, 11, 17]
28+
java: [8, 11, 17, 20]
2929
jdk: [temurin]
3030
fail-fast: false
3131

@@ -43,4 +43,7 @@ jobs:
4343
cache: 'maven'
4444

4545
- name: Build with Maven
46-
run: mvn install javadoc:javadoc -e -B -V -Pno-tests-if-not-on-osx
46+
run: mvn install javadoc:javadoc -e -B -V
47+
48+
- name: Build with Maven and target Java level - ${{ matrix.java }}
49+
run: mvn clean install javadoc:javadoc -e -DjavaVersion=${{ matrix.java }}

pom.xml

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
</distributionManagement>
3232

3333
<properties>
34+
<!-- remove with parent upgrade -->
35+
<maven.compiler.source>${javaVersion}</maven.compiler.source>
36+
<maven.compiler.target>${javaVersion}</maven.compiler.target>
3437
<project.build.outputTimestamp>2021-09-21T23:45:11Z</project.build.outputTimestamp>
3538
</properties>
3639

0 commit comments

Comments
 (0)