Skip to content

Commit

Permalink
Fixes #216 - Update to Java 21 (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem authored Oct 9, 2023
1 parent 0a22746 commit 8d28bed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Java
- name: Set up Java 21
uses: actions/setup-java@v1
with:
java-version: 17
java-version: 21
- name: Build with Maven
run: mvn -B --ntp package
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v1
- name: Set up Java 17
- name: Set up Java 21
uses: actions/setup-java@v1
with:
java-version: 17
java-version: 21
- name: Build with Maven
run: mvn -B -DskipTests=true -f pom.xml --ntp install
9 changes: 5 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<version>23.1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Manorrock Sphynx - Project</name>
<properties>
<java.vereion>21</java.vereion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -66,7 +70,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<release>17</release>
<release>${java.version}</release>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -117,7 +121,4 @@
<module>cli</module>
<module>webapp</module>
</modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

0 comments on commit 8d28bed

Please sign in to comment.