Skip to content

Commit

Permalink
Fix Java version and build on Java 18
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed May 14, 2022
1 parent bc5ad11 commit d9fbd4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [8, 11, 17]
# and run on both Linux and Windows
java: [
8, # LTS
11, # LTS
17, # LTS
18 # Latest
]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
if: github.ref != 'refs/heads/gh-pages'
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>18</maven.compiler.source>
<maven.compiler.target>18</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
Expand Down

0 comments on commit d9fbd4e

Please sign in to comment.