File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed
src/main/kotlin/no/nav/klage/document Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ jobs:
31
31
restore-keys : |
32
32
${{ runner.os }}-gradle-
33
33
34
- - name : Install Java 17
34
+ - name : Install Java 21
35
35
uses : actions/setup-java@v4
36
36
with :
37
- java-version : 17
37
+ java-version : 21
38
38
distribution : temurin
39
39
40
40
- name : Test and build
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ jobs:
13
13
key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
14
14
restore-keys : |
15
15
${{ runner.os }}-gradle-
16
- - name : Sett opp Java 17
16
+ - name : Sett opp Java 21
17
17
uses : actions/setup-java@main
18
18
with :
19
- java-version : 17
19
+ java-version : 21
20
20
distribution : temurin
21
21
- name : test and build
22
22
run : ./gradlew test build
Original file line number Diff line number Diff line change 1
- FROM gcr.io/distroless/java17 -debian12:latest
1
+ FROM gcr.io/distroless/java21 -debian12:nonroot
2
2
ENV TZ="Europe/Oslo"
3
3
4
4
COPY build/libs/app.jar /app/app.jar
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ repositories {
12
12
}
13
13
14
14
plugins {
15
- val kotlinVersion = " 1.8.0 "
15
+ val kotlinVersion = " 1.9.23 "
16
16
id(" org.springframework.boot" ) version " 3.2.4"
17
17
kotlin(" jvm" ) version kotlinVersion
18
18
kotlin(" plugin.spring" ) version kotlinVersion
@@ -54,12 +54,12 @@ dependencies {
54
54
testImplementation(" org.mockito:mockito-inline:5.2.0" )
55
55
}
56
56
57
- java.sourceCompatibility = JavaVersion .VERSION_17
57
+ java.sourceCompatibility = JavaVersion .VERSION_21
58
58
59
59
tasks.withType<KotlinCompile > {
60
60
kotlinOptions {
61
61
freeCompilerArgs = listOf (" -Xjsr305=strict" )
62
- jvmTarget = " 17 "
62
+ jvmTarget = " 21 "
63
63
}
64
64
}
65
65
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ class CommentsController(
165
165
}
166
166
167
167
fun getIdent (): String? =
168
- tokenValidationContextHolder.tokenValidationContext .getJwtToken(ISSUER_AAD )
169
- .jwtTokenClaims?.get(" NAVident" )?.toString()
168
+ tokenValidationContextHolder.getTokenValidationContext() .getJwtToken(ISSUER_AAD )
169
+ ? .jwtTokenClaims?.get(" NAVident" )?.toString()
170
170
171
171
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class TokenUtil(
19
19
getIdentNullable() ? : throw RuntimeException (" NAVident not found in token" )
20
20
21
21
fun getIdentNullable (): String? =
22
- tokenValidationContextHolder.tokenValidationContext .getJwtToken(ISSUER_AAD )
23
- .jwtTokenClaims?.get(" NAVident" )?.toString()
22
+ tokenValidationContextHolder.getTokenValidationContext() .getJwtToken(ISSUER_AAD )
23
+ ? .jwtTokenClaims?.get(" NAVident" )?.toString()
24
24
25
25
}
You can’t perform that action at this time.
0 commit comments