Skip to content

Commit 65e595a

Browse files
committed
Oppdaterer pakking av jar og bygging av dockerfile, og tilpasser oppgradering fra java 17 til 21.
1 parent 51064b3 commit 65e595a

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

Dockerfile

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
FROM gcr.io/distroless/java17-debian11
2-
COPY build/libs/tms-min-side-proxy-all.jar app/app.jar
3-
ENV PORT=8080
4-
EXPOSE $PORT
5-
WORKDIR app
6-
CMD ["app.jar"]
1+
FROM ghcr.io/navikt/baseimages/temurin:21
2+
3+
ENV JAVA_OPTS='-XX:MaxRAMPercentage=75'
4+
5+
COPY build/libs/*.jar ./

build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
44
plugins {
55
kotlin("jvm").version(Kotlin.version)
66

7-
id(Shadow.pluginId) version (Shadow.version)
7+
id(TmsJarBundling.plugin)
88

99
application
1010
}
1111

1212
kotlin {
1313
jvmToolchain {
14-
languageVersion.set(JavaLanguageVersion.of(17))
14+
languageVersion.set(JavaLanguageVersion.of(21))
1515
}
1616
}
1717

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

src/main/kotlin/no/nav/tms/min/side/proxy/proxyApi.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ fun Application.proxyApi(
138138
}
139139

140140
private fun Application.configureShutdownHook(contentFetcher: ContentFetcher) {
141-
environment.monitor.subscribe(ApplicationStopping) {
141+
monitor.subscribe(ApplicationStopping) {
142142
contentFetcher.shutDown()
143143
}
144144
}

0 commit comments

Comments
 (0)