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:
3131 restore-keys : |
3232 ${{ runner.os }}-gradle-
3333
34- - name : Install Java 17
34+ - name : Install Java 21
3535 uses : actions/setup-java@v4
3636 with :
37- java-version : 17
37+ java-version : 21
3838 distribution : temurin
3939
4040 - name : Test and build
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ jobs:
1313 key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
1414 restore-keys : |
1515 ${{ runner.os }}-gradle-
16- - name : Sett opp Java 17
16+ - name : Sett opp Java 21
1717 uses : actions/setup-java@main
1818 with :
19- java-version : 17
19+ java-version : 21
2020 distribution : temurin
2121 - name : test and build
2222 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
22ENV TZ="Europe/Oslo"
33
44COPY build/libs/app.jar /app/app.jar
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ repositories {
1212}
1313
1414plugins {
15- val kotlinVersion = " 1.8.0 "
15+ val kotlinVersion = " 1.9.23 "
1616 id(" org.springframework.boot" ) version " 3.2.4"
1717 kotlin(" jvm" ) version kotlinVersion
1818 kotlin(" plugin.spring" ) version kotlinVersion
@@ -54,12 +54,12 @@ dependencies {
5454 testImplementation(" org.mockito:mockito-inline:5.2.0" )
5555}
5656
57- java.sourceCompatibility = JavaVersion .VERSION_17
57+ java.sourceCompatibility = JavaVersion .VERSION_21
5858
5959tasks.withType<KotlinCompile > {
6060 kotlinOptions {
6161 freeCompilerArgs = listOf (" -Xjsr305=strict" )
62- jvmTarget = " 17 "
62+ jvmTarget = " 21 "
6363 }
6464}
6565
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ class CommentsController(
165165 }
166166
167167 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()
170170
171171}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class TokenUtil(
1919 getIdentNullable() ? : throw RuntimeException (" NAVident not found in token" )
2020
2121 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()
2424
2525}
You can’t perform that action at this time.
0 commit comments