Skip to content

Commit

Permalink
Run tests also with Java 20
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed May 27, 2023
1 parent 3bbc545 commit 57d462d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest,windows-latest, macOS-latest]
java: [8, 11, 17]
java: [8, 11, 17, 20]
jdk: [temurin]
fail-fast: false

Expand All @@ -43,4 +43,7 @@ jobs:
cache: 'maven'

- name: Build with Maven
run: mvn install javadoc:javadoc -e -B -V -Pno-tests-if-not-on-osx
run: mvn install javadoc:javadoc -e -B -V

- name: Build with Maven and target Java level - ${{ matrix.java }}
run: mvn clean install javadoc:javadoc -e -DjavaVersion=${{ matrix.java }}
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
</distributionManagement>

<properties>
<!-- remove with parent upgrade -->
<maven.compiler.source>${javaVersion}</maven.compiler.source>
<maven.compiler.target>${javaVersion}</maven.compiler.target>
<project.build.outputTimestamp>2021-09-21T23:45:11Z</project.build.outputTimestamp>
</properties>

Expand Down

0 comments on commit 57d462d

Please sign in to comment.