Skip to content

Commit

Permalink
Builds with JDK 17 (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianszczepanik authored Jan 1, 2024
1 parent b4d5ba7 commit a3ddbe7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
strategy:
matrix:
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
jvm: [ 11, 17, 21 ]

runs-on: ${{ matrix.os }}

Expand All @@ -23,7 +24,7 @@ jobs:

- uses: actions/setup-java@v3
with:
java-version: 11
java-version: ${{ matrix.jvm }}
distribution: adopt

- run: mvn --batch-mode verify
2 changes: 1 addition & 1 deletion .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: adopt

- name: Generate demo report
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: adopt

- name: Generate code coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: adopt

- name: Build with Maven
Expand Down
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.2</version>
<configuration>
<!-- Allow JUnit to access the test classes -->
<argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
</argLine>
<systemPropertyVariables>
<!-- JaCoCo runtime must know where to dump coverage: -->
<jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
Expand Down

0 comments on commit a3ddbe7

Please sign in to comment.