diff --git a/sample-apps/java/11+/springboot-main-service/build.gradle.kts b/sample-apps/java/11+/springboot-main-service/build.gradle.kts index 6fb08838d..d5904b19e 100644 --- a/sample-apps/java/11+/springboot-main-service/build.gradle.kts +++ b/sample-apps/java/11+/springboot-main-service/build.gradle.kts @@ -52,7 +52,7 @@ dependencies { jib { from { - image = "openjdk:22-jdk" + image = "openjdk:$javaVersion-jdk" } to { diff --git a/sample-apps/java/11+/springboot-remote-service/build.gradle.kts b/sample-apps/java/11+/springboot-remote-service/build.gradle.kts index dfa3ab052..93eeace8c 100644 --- a/sample-apps/java/11+/springboot-remote-service/build.gradle.kts +++ b/sample-apps/java/11+/springboot-remote-service/build.gradle.kts @@ -45,7 +45,7 @@ dependencies { jib { from { - image = "openjdk:22-jdk" + image = "openjdk:$javaVersion-jdk" } to { diff --git a/sample-apps/java/8/springboot-main-service/build.gradle.kts b/sample-apps/java/8/springboot-main-service/build.gradle.kts index 888aee489..f5700445f 100644 --- a/sample-apps/java/8/springboot-main-service/build.gradle.kts +++ b/sample-apps/java/8/springboot-main-service/build.gradle.kts @@ -42,6 +42,10 @@ dependencies { } jib { + from { + image = "openjdk:8-jdk" + } + to { image = ":" } diff --git a/sample-apps/java/8/springboot-remote-service/build.gradle.kts b/sample-apps/java/8/springboot-remote-service/build.gradle.kts index 5a6bce767..213bda263 100644 --- a/sample-apps/java/8/springboot-remote-service/build.gradle.kts +++ b/sample-apps/java/8/springboot-remote-service/build.gradle.kts @@ -37,6 +37,10 @@ dependencies { } jib { + from { + image = "openjdk:8-jdk" + } + to { image = ":" }