Skip to content

Commit 3b9e92b

Browse files
authored
Java 17 (#76)
* Oppdater til Java17 * Forenkle codeql
1 parent c54a6e2 commit 3b9e92b

File tree

7 files changed

+19
-28
lines changed

7 files changed

+19
-28
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// Update the VARIANT arg to pick a Java version: 11, 16
1010
// Append -bullseye or -buster to pin to an OS version.
1111
// Use the -bullseye variants on local arm64/Apple Silicon.
12-
"VARIANT": "16",
12+
"VARIANT": "17",
1313
// Options
1414
"INSTALL_MAVEN": "true"
1515
}

.github/workflows/build-pr.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- uses: actions/checkout@v2
1919
- uses: actions/setup-java@v2
2020
with:
21-
java-version: '16'
22-
distribution: 'adopt'
21+
java-version: '17'
22+
distribution: 'temurin'
2323
cache: 'maven'
2424
- name: Build
2525
shell: bash

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
- uses: actions/checkout@v2
2121
- uses: actions/setup-java@v2
2222
with:
23-
java-version: '16'
24-
distribution: 'adopt'
23+
java-version: '17'
24+
distribution: 'temurin'
2525
cache: 'maven'
2626
- name: Build artifacts & deploy
2727
shell: bash

.github/workflows/codeql-analysis.yml

+4-13
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,12 @@ jobs:
3333
- run: git checkout HEAD^2
3434
if: ${{ github.event_name == 'pull_request' }}
3535

36-
- name: Set cache key
37-
run: |
38-
echo "CACHE_KEY=$(expr $(date +%V) - 1 + 1)" >> $GITHUB_ENV
39-
echo "PREVIOUS_CACHE_KEY=$(expr $(date +%V) - 1)" >> $GITHUB_ENV
40-
- uses: actions/cache@v2
41-
with:
42-
path: ~/.m2
43-
key: ${{ runner.os }}-codeql-${{ env.CACHE_KEY }}
44-
restore-keys: |
45-
${{ runner.os }}-codeql-${{ env.PREVIOUS_CACHE_KEY }}
46-
4736
- uses: actions/setup-java@v2
4837
with:
49-
java-version: '16'
50-
distribution: 'adopt'
38+
java-version: '17'
39+
distribution: 'temurin'
40+
check-latest: true
41+
cache: 'maven'
5142

5243
# Initializes the CodeQL tools for scanning.
5344
- name: Initialize CodeQL

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
- name: Set up JDK
2020
uses: actions/setup-java@v2
2121
with:
22-
java-version: '16'
23-
distribution: 'adopt'
22+
java-version: '17'
23+
distribution: 'temurin'
2424
cache: 'maven'
2525
- name: Publish artifact
2626
env:

.java-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
17

pom.xml

+7-7
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
<properties>
4242
<revision>2.4.0-SNAPSHOT</revision>
43-
<java.version>16</java.version>
43+
<java.version>17</java.version>
4444
<maven.compiler.source>${java.version}</maven.compiler.source>
4545
<maven.compiler.target>${java.version}</maven.compiler.target>
4646
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -61,12 +61,12 @@
6161
<dependency>
6262
<groupId>org.assertj</groupId>
6363
<artifactId>assertj-core</artifactId>
64-
<version>3.20.2</version>
64+
<version>3.22.0</version>
6565
</dependency>
6666
<dependency>
6767
<groupId>com.fasterxml.jackson</groupId>
6868
<artifactId>jackson-bom</artifactId>
69-
<version>2.12.3</version>
69+
<version>2.13.1</version>
7070
<scope>import</scope>
7171
<type>pom</type>
7272
</dependency>
@@ -88,7 +88,7 @@
8888
<dependency>
8989
<groupId>org.junit.jupiter</groupId>
9090
<artifactId>junit-jupiter-engine</artifactId>
91-
<version>5.7.2</version>
91+
<version>5.8.2</version>
9292
</dependency>
9393
</dependencies>
9494

@@ -143,12 +143,12 @@
143143
<plugin>
144144
<groupId>org.apache.maven.plugins</groupId>
145145
<artifactId>maven-jar-plugin</artifactId>
146-
<version>3.2.0</version>
146+
<version>3.2.2</version>
147147
</plugin>
148148
<plugin>
149149
<groupId>org.apache.maven.plugins</groupId>
150150
<artifactId>maven-javadoc-plugin</artifactId>
151-
<version>3.3.0</version>
151+
<version>3.3.1</version>
152152
</plugin>
153153
<plugin>
154154
<groupId>org.apache.maven.plugins</groupId>
@@ -179,7 +179,7 @@
179179
<plugin>
180180
<groupId>org.sonarsource.scanner.maven</groupId>
181181
<artifactId>sonar-maven-plugin</artifactId>
182-
<version>3.9.0.2155</version>
182+
<version>3.9.1.2184</version>
183183
</plugin>
184184
</plugins>
185185
</pluginManagement>

0 commit comments

Comments
 (0)