Skip to content

Commit

Permalink
#1085 Modernize Java
Browse files Browse the repository at this point in the history
* update Java source/target (release) version to 11
* build with Java 11, 17 and 21
* use Maven Compiler Plugin 3.11.0
  • Loading branch information
oliverlietz committed Oct 17, 2023
1 parent 11f4bdf commit 9f4640d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java-version: [ 8, 11 ]
java-version: [ 11, 17, 21 ]
os: [ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
Expand Down
7 changes: 5 additions & 2 deletions pom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
<id>enforce</id>
<configuration>
<rules>
<requireJavaVersion>
<version>11</version>
</requireJavaVersion>
<requireMavenVersion>
<version>(3.0.0,)</version>
<message>This project requires Maven 3</message>
Expand Down Expand Up @@ -134,9 +137,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<release>11</release>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 9f4640d

Please sign in to comment.