Skip to content

Commit

Permalink
Allow builds to run with java 17 or 21 (#1138)
Browse files Browse the repository at this point in the history
* [pom] Support builds jdk 17+

* [GHA] Run jdk 17 and 21 as well
  • Loading branch information
hazendaz authored Dec 28, 2023
1 parent bf539ce commit e784d3a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
build:
strategy:
matrix:
java: [ '11' ]
java: [ '11', '17', '21' ]
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]

runs-on: ${{ matrix.os }}
Expand Down
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@
</build>

</profile>

<profile>
<id>jdk17on</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<properties>
<argLine>--add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED</argLine>
</properties>
</profile>
</profiles>

<build>
Expand Down

0 comments on commit e784d3a

Please sign in to comment.