Skip to content

Commit aae00e3

Browse files
NFC-127 Bump Java version to 21 (LTS)
Signed-off-by: Sander Kondratjev <sander.kondratjev@nortal.com>
1 parent a1198af commit aae00e3

8 files changed

Lines changed: 19 additions & 19 deletions

File tree

.github/workflows/coverity-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
- uses: actions/setup-java@v4
2121
with:
2222
distribution: zulu
23-
java-version: 11
23+
java-version: 21
2424

2525
- name: Cache Maven packages
2626
uses: actions/cache@v4
2727
with:
2828
path: ~/.m2
29-
key: ${{ runner.os }}-m2-v8-${{ hashFiles('**/pom.xml') }}
30-
restore-keys: ${{ runner.os }}-m2-v8
29+
key: ${{ runner.os }}-m2-v21-${{ hashFiles('**/pom.xml') }}
30+
restore-keys: ${{ runner.os }}-m2-v21
3131

3232
- name: Download Coverity Build Tool
3333
run: |

.github/workflows/maven-build-example.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
- uses: actions/setup-java@v4
2121
with:
2222
distribution: zulu
23-
java-version: 17
23+
java-version: 21
2424

2525
- name: Cache Maven packages
2626
uses: actions/cache@v4
2727
with:
2828
path: ~/.m2
29-
key: ${{ runner.os }}-m2-v17-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/pom.xml') }}
30-
restore-keys: ${{ runner.os }}-m2-v17-${{ secrets.CACHE_VERSION }}
29+
key: ${{ runner.os }}-m2-v21-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/pom.xml') }}
30+
restore-keys: ${{ runner.os }}-m2-v21-${{ secrets.CACHE_VERSION }}
3131

3232
- name: Install library
3333
run: mvn -B -ntp install

.github/workflows/maven-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
- uses: actions/setup-java@v4
2121
with:
2222
distribution: zulu
23-
java-version: 11
23+
java-version: 21
2424

2525
- name: Cache Maven packages
2626
uses: actions/cache@v4
2727
with:
2828
path: ~/.m2
29-
key: ${{ runner.os }}-m2-v8-${{ hashFiles('**/pom.xml') }}
30-
restore-keys: ${{ runner.os }}-m2-v8
29+
key: ${{ runner.os }}-m2-v21-${{ hashFiles('**/pom.xml') }}
30+
restore-keys: ${{ runner.os }}-m2-v21
3131

3232
- name: Build
3333
run: mvn --batch-mode compile

.github/workflows/maven-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
- uses: actions/setup-java@v4
1515
with:
1616
distribution: zulu
17-
java-version: 11
17+
java-version: 21
1818

1919
- name: Cache Maven packages
2020
uses: actions/cache@v4
2121
with:
2222
path: ~/.m2
23-
key: ${{ runner.os }}-m2-v8-${{ hashFiles('**/pom.xml') }}
24-
restore-keys: ${{ runner.os }}-m2-v8
23+
key: ${{ runner.os }}-m2-v21-${{ hashFiles('**/pom.xml') }}
24+
restore-keys: ${{ runner.os }}-m2-v21
2525

2626
- name: Deploy to GitLab Package Repository # GitHub Packages
2727
env:

.github/workflows/sonarcloud-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
- uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
23-
- name: Set up JDK 17
23+
- name: Set up JDK 21
2424
uses: actions/setup-java@v4
2525
with:
2626
distribution: zulu
27-
java-version: 17
27+
java-version: 21
2828
- name: Cache SonarCloud packages
2929
uses: actions/cache@v4
3030
with:
@@ -35,8 +35,8 @@ jobs:
3535
uses: actions/cache@v4
3636
with:
3737
path: ~/.m2
38-
key: ${{ runner.os }}-m2-v11-${{ hashFiles('**/pom.xml') }}
39-
restore-keys: ${{ runner.os }}-m2-v17
38+
key: ${{ runner.os }}-m2-v21-${{ hashFiles('**/pom.xml') }}
39+
restore-keys: ${{ runner.os }}-m2-v21
4040
- name: Build and analyze
4141
env:
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any

example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can specify the profile as a command-line argument to the Maven wrapper comm
5151

5252
### 5. Run the application
5353

54-
Spring Boot web applications can be run from the command-line. You need to have the Java Development Kit 17 installed for building the application package and running the application.
54+
Spring Boot web applications can be run from the command-line. You need to have the Java Development Kit 21 installed for building the application package and running the application.
5555

5656
Build and run the application with the following command in a terminal window:
5757

example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</description>
1818

1919
<properties>
20-
<java.version>17</java.version>
20+
<java.version>21</java.version>
2121
<maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
2222
<webeid.version>4.0.0-SNAPSHOT</webeid.version>
2323
<digidoc4j.version>6.0.1</digidoc4j.version>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<description>Web eID authentication token validation library for Java</description>
1212

1313
<properties>
14-
<java.version>11</java.version>
14+
<java.version>21</java.version>
1515
<jjwt.version>0.12.6</jjwt.version>
1616
<bouncycastle.version>1.81</bouncycastle.version>
1717
<jackson.version>2.19.1</jackson.version>

0 commit comments

Comments
 (0)