Skip to content

Commit 892effb

Browse files
committed
chore(ci): update GitHub Actions
1 parent eb9d638 commit 892effb

4 files changed

Lines changed: 21 additions & 17 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
jobs:
1818
analyze:
1919
name: Analyze
20-
runs-on: ubuntu-22.04
20+
runs-on: ubuntu-24.04
2121

2222
strategy:
2323
fail-fast: false
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v5
3434
with:
3535
# We must fetch at least the immediate parents so that if this is
3636
# a pull request then we can check out the head.

.github/workflows/continuous-delivery.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,19 @@ on:
1010
env:
1111
# This will suppress any download for dependencies and plugins or upload messages which would clutter the console log.
1212
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
13-
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
13+
MAVEN_OPTS: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
1414
# As of Maven 3.3.0 instead of this you may define these options in `.mvn/maven.config` so the same config is used
1515
# when running from the command line.
1616
# `installAtEnd` and `deployAtEnd` are only effective with recent version of the corresponding plugins.
1717
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
1818

1919
jobs:
2020
build:
21-
22-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-24.04
2322
timeout-minutes: 10
2423

2524
steps:
26-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2726

2827
- name: Bump version and create tag
2928
id: semanticversion
@@ -50,11 +49,11 @@ jobs:
5049
key: ${{ runner.os }}-sonar
5150
restore-keys: ${{ runner.os }}-sonar
5251

53-
- name: Set up JDK 17
54-
uses: actions/setup-java@v4
52+
- name: Set up JDK 21
53+
uses: actions/setup-java@v5
5554
with:
5655
distribution: 'temurin'
57-
java-version: '17'
56+
java-version: '21'
5857
cache: 'maven'
5958

6059
## Build with maven

.github/workflows/continuous-integration.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,19 @@ on:
1010
env:
1111
# This will suppress any download for dependencies and plugins or upload messages which would clutter the console log.
1212
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
13-
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
13+
MAVEN_OPTS: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
1414
# As of Maven 3.3.0 instead of this you may define these options in `.mvn/maven.config` so the same config is used
1515
# when running from the command line.
1616
# `installAtEnd` and `deployAtEnd` are only effective with recent version of the corresponding plugins.
1717
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
1818

1919
jobs:
2020
build:
21-
22-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-24.04
2322
timeout-minutes: 10
2423

2524
steps:
26-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2726

2827
## Enable Caching
2928
- name: Cache SonarCloud packages
@@ -33,11 +32,11 @@ jobs:
3332
key: ${{ runner.os }}-sonar
3433
restore-keys: ${{ runner.os }}-sonar
3534

36-
- name: Set up JDK 17
37-
uses: actions/setup-java@v4
35+
- name: Set up JDK 21
36+
uses: actions/setup-java@v5
3837
with:
3938
distribution: 'temurin'
40-
java-version: '17'
39+
java-version: '21'
4140
cache: 'maven'
4241

4342
- name: Perform build and analysis

pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
<configuration>
8888
<source>17</source>
8989
<target>17</target>
90+
<release>17</release>
9091
</configuration>
9192
</plugin>
9293
<plugin>
@@ -154,7 +155,7 @@
154155
</requireMavenVersion>
155156
<requireJavaVersion>
156157
<!-- http://maven.apache.org/enforcer/enforcer-rules/versionRanges.html -->
157-
<version>[17,21)</version>
158+
<version>[17,22)</version>
158159
</requireJavaVersion>
159160
<!-- <requirePluginVersions> <message>Best Practice is to
160161
always define plugin versions!</message> <banLatest>true</banLatest> <banRelease>true</banRelease>
@@ -232,6 +233,11 @@
232233
<artifactId>maven-javadoc-plugin</artifactId>
233234
<version>3.12.0</version>
234235
</plugin>
236+
<plugin>
237+
<groupId>org.sonarsource.scanner.maven</groupId>
238+
<artifactId>sonar-maven-plugin</artifactId>
239+
<version>5.3.0.6276</version>
240+
</plugin>
235241
</plugins>
236242
</pluginManagement>
237243
</build>

0 commit comments

Comments
 (0)