Skip to content

Commit

Permalink
Oppdarte jib cfg for hendelseprosessor
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsmsa committed Dec 17, 2024
1 parent 613bf6c commit a3aaaf0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/hendelseprosessor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ plugins {
id("com.google.cloud.tools.jib")
application
}
val jvmVersion = JavaVersion.VERSION_21
val jvmMajorVersion: String by project
val image: String? by project
val baseImage: String by project

dependencies {
implementation(project(":domain:interne-hendelser"))
Expand Down Expand Up @@ -36,7 +37,7 @@ dependencies {

java {
toolchain {
languageVersion = JavaLanguageVersion.of(jvmVersion.majorVersion)
languageVersion = JavaLanguageVersion.of(jvmMajorVersion)
}
}

Expand All @@ -45,7 +46,7 @@ application {
}

jib {
from.image = "ghcr.io/navikt/baseimages/temurin:${jvmVersion.majorVersion}"
from.image = "$baseImage:$jvmMajorVersion"
to.image = "${image ?: rootProject.name }:${project.version}"
}

Expand Down

0 comments on commit a3aaaf0

Please sign in to comment.