Skip to content

Commit

Permalink
Upgrade to JDK 21
Browse files Browse the repository at this point in the history
  • Loading branch information
alina-yur authored and fniephaus committed Feb 6, 2024
1 parent 5c0d8d9 commit fecfbac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: graalvm/setup-graalvm@v1
with:
version: '22.3.0'
gds-token: ${{ secrets.GDS_TOKEN }}
java-version: '19'
components: 'native-image'
java-version: '21'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
native-image-pr-reports: 'true'
Expand Down
7 changes: 2 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>19</source>
<target>19</target>
<compilerArgument>--enable-preview</compilerArgument>
<source>21</source>
<target>21</target>
</configuration>
</plugin>
</plugins>
Expand All @@ -44,7 +43,6 @@
<configuration>
<mainClass>gameoflife.Main</mainClass>
<buildArgs>
<arg>--enable-preview</arg>
<arg>--install-exit-handlers</arg>
</buildArgs>
</configuration>
Expand Down Expand Up @@ -73,7 +71,6 @@
<configuration>
<mainClass>gameoflife.Main</mainClass>
<buildArgs>
<arg>--enable-preview</arg>
<arg>--install-exit-handlers</arg>
<arg>--gc=G1</arg>
<!-- <arg>- -pgo-instrument</arg> -->
Expand Down

0 comments on commit fecfbac

Please sign in to comment.