Skip to content

Commit

Permalink
Adjust pom.xml to compile in java 21
Browse files Browse the repository at this point in the history
Add java 21 to the matrix in Github CI
Fixes #26
  • Loading branch information
albfernandez committed May 28, 2024
1 parent 6ae54f7 commit a54f8ff
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 11, 17 ]
java: [ 8, 11, 17, 21 ]
name: Java ${{matrix.java}}
steps:
- uses: actions/checkout@v2
Expand Down
14 changes: 14 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@

<profiles>
<profile>
<id>java6</id>
<activation>
<jdk>1.6</jdk>
</activation>
Expand All @@ -213,6 +214,19 @@
<javadoc.opts>-Xdoclint:none</javadoc.opts>
</properties>
</profile>
<profile>
<id>java</id>
<activation>
<!--
release 1.7 is removed in java 20
https://bugs.openjdk.org/browse/JDK-8173605
-->
<jdk>[20,)</jdk>
</activation>
<properties>
<compiler.level>1.8</compiler.level>
</properties>
</profile>
<profile>
<id>deploy</id>
<build>
Expand Down

0 comments on commit a54f8ff

Please sign in to comment.