Skip to content

Commit

Permalink
Upgrade ot Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
turing85 committed May 13, 2024
1 parent a6e0a3a commit 75f92ba
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/actions/owasp-scan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ runs:
using: composite

steps:
- name: Set up JDK 17
uses: actions/setup-java@v3
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
cache: 'maven'
distribution: 'temurin'
java-version: 17
java-version: 21

- name: Set up Maven 3.9.4
uses: stCarolas/setup-maven@v4.5
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/populate-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ runs:
using: composite

steps:
- name: Set up JDK 17
uses: actions/setup-java@v3
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
cache: maven
distribution: temurin
java-version: 17
java-version: 21
id: setup-java

- name: Set up Maven 3.9.4
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ jobs:
- name: Git checkout
uses: actions/checkout@v4

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
cache: 'maven'
distribution: 'temurin'
java-version: 17
java-version: 21

- name: Set up Maven 3.9.4
uses: stCarolas/setup-maven@v5
Expand Down Expand Up @@ -184,12 +184,12 @@ jobs:
- name: Git checkout
uses: actions/checkout@v4

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
cache: 'maven'
distribution: 'temurin'
java-version: 17
java-version: 21

- name: Set up Maven 3.9.4
uses: stCarolas/setup-maven@v5
Expand Down Expand Up @@ -266,12 +266,12 @@ jobs:
with:
fetch-depth: 0

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
cache: 'maven'
distribution: 'temurin'
java-version: 17
java-version: 21

- name: Set up Maven 3.9.4
uses: stCarolas/setup-maven@v5
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<fmt-maven-plugin.goal>format</fmt-maven-plugin.goal>
<git-ssh-url>git:ssh://github.com/turing85/advent-of-code-2022.git</git-ssh-url>
<maven.version>3.9.4</maven.version>
<maven.compiler.release>17</maven.compiler.release>
<maven.compiler.release>21</maven.compiler.release>
<maven.compiler.source>${maven.compiler.release}</maven.compiler.source>
<maven.compiler.target>${maven.compiler.release}</maven.compiler.target>
<maven-site-plugin.stage.skip>false</maven-site-plugin.stage.skip>
Expand Down

0 comments on commit 75f92ba

Please sign in to comment.